get single page

This commit is contained in:
Daniel Tsvetkov 2020-07-13 13:15:09 +02:00
parent 0b31e959b9
commit decef3f6a7
3 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,5 @@
{% extends "layout.html" %}
{% block content %}
<h2><a href="{{ url_for('blog_post_filename', filename=instance.filename) }}">{{ instance.title }}</a></h2>
<small><i>{{ _("Created on") }} {{ instance.created_dt }}</i></small>
{{ instance.body|markdown|rawhtmlparse|safe }}
{% include "blog_post/get_single.html" %}
{% endblock %}

View File

@ -0,0 +1,3 @@
<h2><a href="{{ url_for('blog_post_filename', filename=instance.filename) }}">{{ instance.title }}</a></h2>
<small><i>{{ _("Created on") }} {{ instance.created_dt }}</i></small>
{{ instance.body|markdown|rawhtmlparse|safe }}

View File

@ -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') }}