diff options
author | Kyle Fuller <inbox@kylefuller.co.uk> | 2012-05-14 18:17:00 +0100 |
---|---|---|
committer | Kyle Fuller <inbox@kylefuller.co.uk> | 2012-05-14 18:28:45 +0100 |
commit | 9c349d82c60d06563e1c1fc52600179f702cebc2 (patch) | |
tree | 311ea3ead0833a85fbbc7463739a26bec7443934 /tuxlite_tbs/templates/metadata.html | |
parent | 2e0d1cae62b36ebef459e7b3ad5c8c83a0255c7f (diff) | |
download | pelican-themes-9c349d82c60d06563e1c1fc52600179f702cebc2.tar.gz |
Use object.url to get the url for author, category and tags
Diffstat (limited to 'tuxlite_tbs/templates/metadata.html')
-rw-r--r-- | tuxlite_tbs/templates/metadata.html | 6 |
1 files changed, 3 insertions, 3 deletions
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 %} #} |