Blog: Check if blog_archive_prev/next exist before showing link

Also minor cleanup of the classes and excessive indenting.
This commit is contained in:
2017-10-05 16:38:53 +02:00
committed by Sybren A. Stüvel
parent 01dab4188c
commit 6d8870ba25
4 changed files with 61 additions and 49 deletions

View File

@@ -2,11 +2,11 @@
| {% import 'nodes/custom/blog/_macros.html' as blogmacros %}
| {% block body %}
.container.blog-archive
.container
#blog_container.cloud-blog
#blog_index-container
.blog_index-header
h3.blog-archive-title
| Blog Archive
h3 Blog Archive
| {{ blogmacros.render_archive(project, posts, posts_meta) }}
| {% endblock %}
| {% endblock body %}