diff options
-rw-r--r-- | foundation-default-colours/templates/base.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/foundation-default-colours/templates/base.html b/foundation-default-colours/templates/base.html index 3f27d2a..26241a2 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> |