From 855584408b472503c3eb415ff168ed3513d7d02a 2015-03-04 23:32:32 From: Bradley M. Kuhn Date: 2015-03-04 23:32:32 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. --- diff --git a/www/conservancy/templates/base_blog.html b/www/conservancy/templates/base_blog.html index dc8dac4cb518c78ec8f623949b914b81394dbbbf..187825fd41621e86f8a0d5fa30773fc8d9e16804 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 334ef5196b7ee2a227d0ff4234f85a1a60195feb..10323b4caf58af303cf0ed49664b1f025fd8092c 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 %}