diff --git a/webapp/templates/blog_post/get.html b/webapp/templates/blog_post/get.html index f5a9f44..017b79d 100644 --- a/webapp/templates/blog_post/get.html +++ b/webapp/templates/blog_post/get.html @@ -1,7 +1,5 @@ {% extends "layout.html" %} {% block content %} -

{{ instance.title }}

- {{ _("Created on") }} {{ instance.created_dt }} - {{ instance.body|markdown|rawhtmlparse|safe }} + {% include "blog_post/get_single.html" %} {% endblock %} \ No newline at end of file diff --git a/webapp/templates/blog_post/get_single.html b/webapp/templates/blog_post/get_single.html new file mode 100644 index 0000000..504c928 --- /dev/null +++ b/webapp/templates/blog_post/get_single.html @@ -0,0 +1,3 @@ +

{{ instance.title }}

+{{ _("Created on") }} {{ instance.created_dt }} +{{ instance.body|markdown|rawhtmlparse|safe }} \ No newline at end of file diff --git a/webapp/templates/home.html b/webapp/templates/home.html index 4bf85dc..8792609 100644 --- a/webapp/templates/home.html +++ b/webapp/templates/home.html @@ -2,7 +2,7 @@ {% block content %} {% for instance in blog_post_pagination.items %} - {% include "blog_post/get.html" %} + {% include "blog_post/get_single.html" %} {% endfor %} {% import "_macros.html" as m %} {{ m.render_pagination(blog_post_pagination, 'home') }}