get single page
This commit is contained in:
parent
0b31e959b9
commit
decef3f6a7
@ -1,7 +1,5 @@
|
|||||||
{% extends "layout.html" %}
|
{% extends "layout.html" %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h2><a href="{{ url_for('blog_post_filename', filename=instance.filename) }}">{{ instance.title }}</a></h2>
|
{% include "blog_post/get_single.html" %}
|
||||||
<small><i>{{ _("Created on") }} {{ instance.created_dt }}</i></small>
|
|
||||||
{{ instance.body|markdown|rawhtmlparse|safe }}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
3
webapp/templates/blog_post/get_single.html
Normal file
3
webapp/templates/blog_post/get_single.html
Normal 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 }}
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% for instance in blog_post_pagination.items %}
|
{% for instance in blog_post_pagination.items %}
|
||||||
{% include "blog_post/get.html" %}
|
{% include "blog_post/get_single.html" %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% import "_macros.html" as m %}
|
{% import "_macros.html" as m %}
|
||||||
{{ m.render_pagination(blog_post_pagination, 'home') }}
|
{{ m.render_pagination(blog_post_pagination, 'home') }}
|
||||||
|
Loading…
Reference in New Issue
Block a user