aboutsummaryrefslogtreecommitdiffstats
path: root/templates/aggregator
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-03-27 22:44:39 +0200
committerGravatar Tom Willemsen2012-03-27 22:44:39 +0200
commit74c070279fb1c240779f9562ab6171ba32e3d744 (patch)
tree83c342d82e0eb91e807bfd229c71a6f858c019be /templates/aggregator
parent43d5b96188f6ffcc0196a29a11dec10776c30af5 (diff)
downloadryuslash.org-74c070279fb1c240779f9562ab6171ba32e3d744.tar.gz
ryuslash.org-74c070279fb1c240779f9562ab6171ba32e3d744.zip
Add categories to main page
Diffstat (limited to 'templates/aggregator')
-rw-r--r--templates/aggregator/base.html8
-rw-r--r--templates/aggregator/posts.html6
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 %}