From 855584408b472503c3eb415ff168ed3513d7d02a Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Wed, 4 Mar 2015 15:32:32 -0800 Subject: [PATCH] Move blog index to be part of base template. This way, it's not on the bottom of pages. This shouldn't cause trouble, since when date_list isn't defined, nothing is shown by this code. --- www/conservancy/templates/base_blog.html | 6 ++++++ www/conservancy/templates/blog/entry_list.html | 7 ------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/www/conservancy/templates/base_blog.html b/www/conservancy/templates/base_blog.html index dc8dac4c..187825fd 100644 --- a/www/conservancy/templates/base_blog.html +++ b/www/conservancy/templates/base_blog.html @@ -24,6 +24,12 @@ (rss) {% endfor %} +{% if date_list %} +

Blog Index by Year

+ +{% endif %}

See all posts…

diff --git a/www/conservancy/templates/blog/entry_list.html b/www/conservancy/templates/blog/entry_list.html index 334ef519..10323b4c 100644 --- a/www/conservancy/templates/blog/entry_list.html +++ b/www/conservancy/templates/blog/entry_list.html @@ -29,11 +29,4 @@

{% if blog_entries.num_pages > 1 %} {% for pagenum in blog_entries.paginator.page_range %}{% ifequal pagenum blog_entries.number %}[{{ pagenum }}]{% else %}{{ pagenum }}{% endifequal %} {% endfor %}{% endif %}

-{% if date_list %} -

Blog Index by Year

- -{% endif %} - {% endblock %}