Initial commit

This commit is contained in:
Felipe M 2016-12-03 22:10:25 +01:00
commit edb5816892
30 changed files with 534 additions and 0 deletions

View file

@ -0,0 +1,11 @@
{% macro render_blog_post(post, from_index=false) %}
<article class="center">
<h1><a href="{{ post|url }}">{{ post.title }}</a></h1>
<div class="info">
Published on {{ post.pub_date }}. // <a href="#">No comments.</a>
</div>
<div class="content">
{{ post.body }}
</div>
</article>
{% endmacro %}

View file

@ -0,0 +1,15 @@
{% macro render_pagination(pagination) %}
<div class="pagination">
{% if pagination.has_prev %}
<a href="{{ pagination.prev|url }}">&laquo; Previous</a>
{% else %}
<span class="disabled">&laquo; Previous</span>
{% endif %}
| {{ pagination.page }} |
{% if pagination.has_next %}
<a href="{{ pagination.next|url }}">Next &raquo;</a>
{% else %}
<span class="disabled">Next &raquo;</span>
{% endif %}
</div>
{% endmacro %}