Victor 6 years ago
parent
commit
16bedfd7b5
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      theme/templates/archives.html

+ 3
- 3
theme/templates/archives.html View File

@ -34,12 +34,12 @@ Full archives of {{ SITENAME|striptags|e }} blog.
<div class="row-fluid">
<div class="span10 offset2">
<div class="blog-archives">
{% set last_year = 0 %}
{% set last_year = {'lastyear': 0} %}
{% for article in dates %}
{% set year = article.date.strftime('%Y') %}
{%if last_year != year %}
{%if last_year.lastyear != year %}
<h2 id="{{year }}"><a href="#{{year}}">{{ year }}</a></h2>
{% set last_year = year %}
{% set _dummy = last_year.update({'lastyear': year}) %}
{% endif %}
{% set next_year = 0 %}
{% if not loop.last %}

Loading…
Cancel
Save