diff options
author | Yaroslav <contact@yaroslavps.com> | 2020-03-12 18:27:25 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2020-03-12 18:27:25 +0300 |
commit | f3908a51aa9654f7049a5a5f74f89439d076924e (patch) | |
tree | 83b7f7a721efda3ce5a049465e91725c0ad9fe32 /templates/weblog.html | |
parent | da4917f8c673a16ba757b3b911cf5ce36895d74e (diff) | |
download | yaroslavps.com-f3908a51aa9654f7049a5a5f74f89439d076924e.tar.gz yaroslavps.com-f3908a51aa9654f7049a5a5f74f89439d076924e.zip |
added fonts, fixed jinja indenting
Diffstat (limited to 'templates/weblog.html')
-rw-r--r-- | templates/weblog.html | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/templates/weblog.html b/templates/weblog.html index 11c0d2a..a20f356 100644 --- a/templates/weblog.html +++ b/templates/weblog.html @@ -2,26 +2,26 @@ {% block content %} <div class="posts-list"> {% for post in paginator.pages %} - <div class="post-preview"> - <h2><a href="{{ post.permalink }}">{{ post.title }}</a></h2> - {% if post.summary %} - {{ post.summary | safe }} - {% endif %} - </div> + <div class="post-preview"> + <h2><a href="{{ post.permalink }}">{{ post.title }}</a></h2> + {% if post.summary %} + {{ post.summary | safe }} + {% endif %} + </div> {% endfor %} </div> {% if paginator %} -{% if paginator.number_pagers > 1 %} -<div class="paginator"> - {% if paginator.previous %} - <a href="{{ paginator.first }}">First</a> - <a href="{{ paginator.previous }}">Previous page: {{ paginator.current_index - 1 }}</a> - {% endif %} - {% if paginator.next %} - <a href="{{ paginator.next }}">Next page: {{ paginator.current_index + 1 }}</a> - <a href="{{ paginator.last }}">Last</a> + {% if paginator.number_pagers > 1 %} + <div class="paginator"> + {% if paginator.previous %} + <a href="{{ paginator.first }}">First</a> + <a href="{{ paginator.previous }}">Previous page: {{ paginator.current_index - 1 }}</a> + {% endif %} + {% if paginator.next %} + <a href="{{ paginator.next }}">Next page: {{ paginator.current_index + 1 }}</a> + <a href="{{ paginator.last }}">Last</a> + {% endif %} + </div> {% endif %} -</div> -{% endif %} {% endif %} {% endblock %} |