diff options
author | Nathan Williams <nathan.andrew.williams@gmail.com> | 2014-04-24 15:49:37 +1000 |
---|---|---|
committer | Nathan Williams <nathan.andrew.williams@gmail.com> | 2014-04-24 15:49:37 +1000 |
commit | 1714bc35a1d6f530a07d8fc34a8161812d0aa4a6 (patch) | |
tree | c08e9b47cd39e4726546a552d13de73601758972 /foundation-default-colours | |
parent | 8df5d27a86a4f211e69bddb3cfea718ac672ccbc (diff) | |
download | pelican-themes-1714bc35a1d6f530a07d8fc34a8161812d0aa4a6.tar.gz |
Fixed monthly archives to respect MONTH_ARCHIVE_SAVE_AS setting
Diffstat (limited to 'foundation-default-colours')
-rw-r--r-- | foundation-default-colours/templates/base.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/foundation-default-colours/templates/base.html b/foundation-default-colours/templates/base.html index 9d0ff88..849799a 100644 --- a/foundation-default-colours/templates/base.html +++ b/foundation-default-colours/templates/base.html @@ -88,7 +88,7 @@ <li><label>Monthly Archives</label></li> {% for year, date_year in dates|groupby( 'date.year' )|sort(reverse=True) %} {% for month, articles in date_year|groupby( 'date.month' )|sort(reverse=True) %} - <li><a href="/posts/{{ year }}/{{ articles[0].date.strftime('%m') }}/">{{ articles[0].date.strftime('%B') }} {{ year }} ({{ articles|count }})</a></li> + <li><a href="/{{ MONTH_ARCHIVE_SAVE_AS.format(date=articles[0].date) }}">{{ articles[0].date.strftime('%B') }} {{ year }} ({{ articles|count }})</a></li> {% endfor %} {% endfor %} {% endif %} @@ -158,7 +158,7 @@ <ul class="side-nav"> {% for year, date_year in dates|groupby( 'date.year' )|sort(reverse=True) %} {% for month, articles in date_year|groupby( 'date.month' )|sort(reverse=True) %} - <li><a href="/posts/{{ year }}/{{ articles[0].date.strftime('%m') }}/">{{ articles[0].date.strftime('%B') }} {{ year }} ({{ articles|count }})</a></li> + <li><a href="/{{ MONTH_ARCHIVE_SAVE_AS.format(date=articles[0].date) }}">{{ articles[0].date.strftime('%B') }} {{ year }} ({{ articles|count }})</a></li> {% endfor %} {% endfor %} </ul> @@ -199,4 +199,4 @@ $(document).foundation(); </script> </body> -</html>
\ No newline at end of file +</html> |