Changeset - 855584408b47
[Not reviewed]
0 2 0
Bradley Kuhn (bkuhn) - 9 years ago 2015-03-04 23:32:32
bkuhn@ebb.org
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.
2 files changed with 6 insertions and 7 deletions:
0 comments (0 inline, 0 general)
www/conservancy/templates/base_blog.html
Show inline comments
...
 
@@ -26,2 +26,8 @@
 
</ul>
 
{% if date_list %}
 
<h3>Blog Index by Year</h3>
 
<ul>
 
{% for year in date_list reversed %}<li><a href="{{ year|date:"Y" }}/">{{ year|date:"Y" }}</a></li>{% endfor %}
 
</ul>
 
{% endif %}
 

	
www/conservancy/templates/blog/entry_list.html
Show inline comments
...
 
@@ -31,9 +31,2 @@
 

	
 
{% if date_list %}
 
<h3>Blog Index by Year</h3>
 
<ul>
 
{% for year in date_list reversed %}<li><a href="{{ year|date:"Y" }}/">{{ year|date:"Y" }}</a></li>{% endfor %}
 
</ul>
 
{% endif %}
 

	
 
{% endblock %}
0 comments (0 inline, 0 general)