Rework blog menu order.

This commit is contained in:
Bradley M. Kuhn 2021-10-23 12:50:28 -07:00
parent 7229e78e0f
commit 399675d6c3

View file

@ -9,30 +9,32 @@
{% block outercontent %} {% block outercontent %}
<div id="container"> <div id="container">
<div id="sidebar" class="{% block submenuselection %}{% endblock %}"> <div id="sidebar" class="{% block submenuselection %}{% endblock %}">
<h2>Authors</h2>
<ul>
{% for author in all_authors %}
<li><a href="/blog/?author={{ author.username }}">{{ author.formal_name }}</a>
(<a href="/feeds/blog/?author={{ author.username }}">rss</a>)</li>
{% endfor %}
</ul>
<h2>Tags</h2>
<ul>
{% for tag in all_tags %}
<li><a href="{{ tag.get_absolute_url }}">{{ tag.label }}</a>
(<a href="/feeds/blog/?tag={{ tag.slug }}">rss</a>)</li>
{% endfor %}
</ul>
{% if all_year_list %} {% if all_year_list %}
<h2><a href="/blog/">See all blog posts&hellip;</a></h2>
<!-- <p><a href="/blog/query/">Query...</a></p> -->
<h2>Blog Index by Year</h2> <h2>Blog Index by Year</h2>
<ul> <ul>
{% for year in all_year_list reversed %}<li><a href="/blog/{{ year|date:"Y" }}/">{{ year|date:"Y" }}</a></li>{% endfor %} {% for year in all_year_list reversed %}<li><a href="/blog/{{ year|date:"Y" }}/">{{ year|date:"Y" }}</a></li>{% endfor %}
</ul> </ul>
{% endif %} {% endif %}
<h2><a href="/blog/">See all posts&hellip;</a></h2> <h2>Blogs by Tag</h2>
<!-- <p><a href="/blog/query/">Query...</a></p> --> <ul>
{% for tag in all_tags %}
<li><a href="{{ tag.get_absolute_url }}">{{ tag.label }}</a>
(<a href="/feeds/blog/?tag={{ tag.slug }}">rss</a>)</li>
{% endfor %}
</ul>
<h2>Blogs by Author</h2>
<ul>
{% for author in all_authors %}
<li><a href="/blog/?author={{ author.username }}">{{ author.formal_name }}</a>
(<a href="/feeds/blog/?author={{ author.username }}">rss</a>)</li>
{% endfor %}
</ul>
</div> </div>
<div id="mainContent">{% block content %}{% endblock %} <div id="mainContent">{% block content %}{% endblock %}
</div> </div>