diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/aggregator/base.html | 8 | ||||
-rw-r--r-- | templates/aggregator/posts.html | 6 |
2 files changed, 11 insertions, 3 deletions
diff --git a/templates/aggregator/base.html b/templates/aggregator/base.html index 6a37f5a..0826711 100644 --- a/templates/aggregator/base.html +++ b/templates/aggregator/base.html @@ -14,7 +14,13 @@ <h1 id="sitetitle"> <span id="blue">ryu</span><span id="orange">slash</span> </h1> - <div id="sitesubtitle">Will this ever really be my website?</div> + <div id="sitesubtitle"> + Will this ever really be my website? + {% for category in categories %} + <a class="category" + href="/{{ category.name|slugify }}/">{{ category.name }}</a> + {% endfor %} + </div> {% block menu %}{% endblock %} diff --git a/templates/aggregator/posts.html b/templates/aggregator/posts.html index 2a5b8a1..efd1cb1 100644 --- a/templates/aggregator/posts.html +++ b/templates/aggregator/posts.html @@ -24,13 +24,15 @@ <div id="pager"> {% if list.has_previous %} <div class="nav-prev"> - <a href="/{{ list.previous_page_number }}/" id="previous">previous</a> + <a href="/{{ category }}/{{ list.previous_page_number }}/" + id="previous">previous</a> </div> {% endif %} {% if list.has_next %} <div class="nav-next"> - <a href="/{{ list.next_page_number }}/" id="next">next</a> + <a href="/{{ category }}/{{ list.next_page_number }}/" + id="next">next</a> </div> {% endif %} |