diff --git a/medium-parser/medium_parser/core.py b/medium-parser/medium_parser/core.py index d0ab465..4dc5406 100644 --- a/medium-parser/medium_parser/core.py +++ b/medium-parser/medium_parser/core.py @@ -361,7 +361,7 @@ class MediumParser: out_paragraphs.append(header_template_rendered) elif paragraph["type"] == "IMG": image_template = jinja_env.from_string( - '
{{ paragraph.metadata.alt }}
' + '
{{ paragraph.metadata.alt }}
' ) image_caption_template = jinja_env.from_string( "
{{ text }}
" diff --git a/medium-parser/tests/templates/post.html b/medium-parser/tests/templates/post.html index 13f948f..2acc077 100644 --- a/medium-parser/tests/templates/post.html +++ b/medium-parser/tests/templates/post.html @@ -21,7 +21,7 @@
- {{ creator.name }} @@ -48,7 +48,7 @@ title="{{ collection.shortDescription }}" target="_blank" class="flex items-center space-x-1"> - {{ collection.name }} diff --git a/web/server/templates/homepage.html b/web/server/templates/homepage.html index a45e799..2184311 100644 --- a/web/server/templates/homepage.html +++ b/web/server/templates/homepage.html @@ -1,18 +1,18 @@ -
+
{% for post in post_list %}
-
+
{% if post.preview_image_id %} - +
{% else %} - +
{% endif %} -

{{ post.title }}

+

{{ post.title }}

@@ -24,7 +24,7 @@ {{ post.collection.name }} + class="w-4 h-4 rounded-full no-lightense">

{{ post.collection.name }}

· @@ -35,7 +35,7 @@ · Free: {{ post.free_access }}
-

{{ post.description }}

+

{{ post.description }}

Read More