aboutsummaryrefslogtreecommitdiffstats
path: root/tuxlite_tbs/templates/archives.html
diff options
context:
space:
mode:
authorRandall Degges <rdegges@gmail.com>2013-03-20 21:01:26 -0700
committerRandall Degges <rdegges@gmail.com>2013-03-20 21:01:26 -0700
commitfe933f80917f865a92db9f8671154b8e0239f779 (patch)
tree48d46c183560b8129632f69307b114ce563a98ee /tuxlite_tbs/templates/archives.html
parent53d6c4254aa2b4781b850419d63a40527c307d71 (diff)
downloadpelican-themes-fe933f80917f865a92db9f8671154b8e0239f779.tar.gz
Fixing broken support for `ARCHIVES_URL` in tuxlite-tbs theme.
This commit fixes an issue with users supplying their own custom `ARCHIVES_URL` setting in their settings file while using the tuxlite-tbs theme. The issue is that the `base.html` template didn't take the `ARCHIVES_URL` variable into account, and therefore ignores is. This causes problems when users want a custom archives URL. This also fixes another part of the issue in the `archives.html` template, in which article URLs were relative (not absolute) which causes breakage when linking to articles. This commit fixes all the above problems.
Diffstat (limited to 'tuxlite_tbs/templates/archives.html')
-rw-r--r--tuxlite_tbs/templates/archives.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/tuxlite_tbs/templates/archives.html b/tuxlite_tbs/templates/archives.html
index 1520943..20fcd87 100644
--- a/tuxlite_tbs/templates/archives.html
+++ b/tuxlite_tbs/templates/archives.html
@@ -9,7 +9,7 @@
{% for article in dates %}
<tr>
<td>{{ article.date.strftime("%d %b %Y") }}</td>
- <td><a href='{{ article.url }}'>{{ article.title }}</a></td>
+ <td><a href='{{ SITEURL }}/{{ article.url }}'>{{ article.title }}</a></td>
</tr>
{% endfor %}
</tbody>