diff --git a/blog/templatetags/blog_tags.py b/blog/templatetags/blog_tags.py index b72d74e..5d50d20 100644 --- a/blog/templatetags/blog_tags.py +++ b/blog/templatetags/blog_tags.py @@ -10,13 +10,14 @@ def blog_mixed_list(context, items): @register.inclusion_tag("includes/blog_mixed_list.html", takes_context=True) -def blog_mixed_list_with_dates(context, items, year_headers=False, day_headers=False): +def blog_mixed_list_with_dates(context, items, year_headers=False, day_headers=False, day_links=False): context.update( { "items": items, "showdate": not day_headers, "year_headers": year_headers, "day_headers": day_headers, + "day_links": day_links, } ) return context diff --git a/templates/archive_day.html b/templates/archive_day.html index 377fbf0..8c8cd48 100644 --- a/templates/archive_day.html +++ b/templates/archive_day.html @@ -3,7 +3,7 @@ {% block title %}Archive for {{ date|date:"l, jS F Y" }}{% endblock %} {% block primary %} -

{{ date|date:"l, jS F Y"}}

+

{{ date|date:"l, jS F Y"}}

{% load blog_tags %} {% blog_mixed_list items %} diff --git a/templates/archive_month.html b/templates/archive_month.html index 5b35a48..ee3d941 100644 --- a/templates/archive_month.html +++ b/templates/archive_month.html @@ -8,7 +8,7 @@

{{ date|date:"F Y"}}

{% load blog_tags %} -{% blog_mixed_list_with_dates items day_headers=1 %} +{% blog_mixed_list_with_dates items day_headers=1 day_links=1 %} {% include "_pagination.html" %} diff --git a/templates/archive_year.html b/templates/archive_year.html index 49d1196..5a6ae16 100644 --- a/templates/archive_year.html +++ b/templates/archive_year.html @@ -3,9 +3,9 @@ {% block title %}Archive for {{ year }}{% endblock %} {% block primary %} -
-

Archive for {{ year }}

+

Archive for {{ year }}

+