From decef3f6a734e818c45b1708506f3b263f738a8a Mon Sep 17 00:00:00 2001 From: Daniel Tsvetkov Date: Mon, 13 Jul 2020 13:15:09 +0200 Subject: [PATCH] get single page --- webapp/templates/blog_post/get.html | 4 +--- webapp/templates/blog_post/get_single.html | 3 +++ webapp/templates/home.html | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 webapp/templates/blog_post/get_single.html 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') }}