aboutsummaryrefslogtreecommitdiffstats
path: root/tuxlite_tbs
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2012-05-14 11:26:29 -0700
committerAlexis Metaireau <alexis@notmyidea.org>2012-05-14 11:26:29 -0700
commit858eb07eb94d36614d05697722c5055da6abd120 (patch)
tree311ea3ead0833a85fbbc7463739a26bec7443934 /tuxlite_tbs
parent2e0d1cae62b36ebef459e7b3ad5c8c83a0255c7f (diff)
parent9c349d82c60d06563e1c1fc52600179f702cebc2 (diff)
downloadpelican-themes-858eb07eb94d36614d05697722c5055da6abd120.zip
pelican-themes-858eb07eb94d36614d05697722c5055da6abd120.tar.gz
pelican-themes-858eb07eb94d36614d05697722c5055da6abd120.tar.bz2
Merge pull request #28 from kylef/url
Use object.url to get the url for author, category and tags
Diffstat (limited to 'tuxlite_tbs')
-rw-r--r--tuxlite_tbs/templates/base.html2
-rw-r--r--tuxlite_tbs/templates/categories.html2
-rw-r--r--tuxlite_tbs/templates/metadata.html6
-rw-r--r--tuxlite_tbs/templates/tags.html2
4 files changed, 6 insertions, 6 deletions
diff --git a/tuxlite_tbs/templates/base.html b/tuxlite_tbs/templates/base.html
index d8b195b..2a71f74 100644
--- a/tuxlite_tbs/templates/base.html
+++ b/tuxlite_tbs/templates/base.html
@@ -85,7 +85,7 @@
</li>
{% for cat, null in categories %}
- <li><a href="{{ SITEURL }}/category/{{ cat }}.html">{{ cat }}</a></li>
+ <li><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
{% endfor %}
</ul>
</div>
diff --git a/tuxlite_tbs/templates/categories.html b/tuxlite_tbs/templates/categories.html
index c96774d..2b95d34 100644
--- a/tuxlite_tbs/templates/categories.html
+++ b/tuxlite_tbs/templates/categories.html
@@ -3,7 +3,7 @@
{% block content %}
<ul>
{% for category, articles in categories %}
- <li><a href="{{ SITEURL }}/category/{{ category }}.html">{{ category }}</li>
+ <li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</li>
{% endfor %}
</ul>
diff --git a/tuxlite_tbs/templates/metadata.html b/tuxlite_tbs/templates/metadata.html
index cb04053..f3148f7 100644
--- a/tuxlite_tbs/templates/metadata.html
+++ b/tuxlite_tbs/templates/metadata.html
@@ -1,13 +1,13 @@
{{ article.date.strftime("%d %b %Y") }}
{% if article.author %}
-by <a class="url fn" href="{{ SITEURL }}/author/{{ article.author }}.html">{{ article.author }}</a>
+by <a class="url fn" href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
{% endif %}
-{# Filed under <a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a> #}
+{# Filed under <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a> #}
{#
{% if article.tags %}
- Tags {% for tag in article.tags %}<a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a> {% endfor %}
+ Tags {% for tag in article.tags %}<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> {% endfor %}
{% endif %}
#}
diff --git a/tuxlite_tbs/templates/tags.html b/tuxlite_tbs/templates/tags.html
index df6f55f..dea6672 100644
--- a/tuxlite_tbs/templates/tags.html
+++ b/tuxlite_tbs/templates/tags.html
@@ -3,7 +3,7 @@
{% block content %}
<ul>
{% for tag, articles in tags %}
- <li><a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</li>
+ <li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</li>
{% endfor %}
</ul>
{% endblock %}