Initial commit
This commit is contained in:
commit
edb5816892
30 changed files with 534 additions and 0 deletions
1
templates/blog/_base.html
Normal file
1
templates/blog/_base.html
Normal file
|
@ -0,0 +1 @@
|
|||
{% extends "_base.html" %}
|
11
templates/blog/list.html
Normal file
11
templates/blog/list.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{% extends "blog/_base.html" %}
|
||||
{% from "macros/blog.html" import render_blog_post %}
|
||||
{% from "macros/pagination.html" import render_pagination %}
|
||||
|
||||
{% block main_content %}
|
||||
{% for child in this.pagination.items %}
|
||||
{{ render_blog_post(child, from_index=true) }}
|
||||
{% endfor %}
|
||||
|
||||
<div class="center">{{ render_pagination(this.pagination) }}</div>
|
||||
{% endblock %}
|
8
templates/blog/post.html
Normal file
8
templates/blog/post.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{% extends "blog/_base.html" %}
|
||||
{% from "macros/blog.html" import render_blog_post %}
|
||||
|
||||
{% block main_content %}
|
||||
{{ render_blog_post(this) }}
|
||||
{% endblock %}
|
||||
|
||||
{% block body_class %}blog post{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue