summaryrefslogtreecommitdiff
path: root/art/plt/page_list.html
blob: 16dc4d502e053e7680937e33c38e82d5348e4864 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{%macro print(pages)%}
  <h2>Articles</h2>
  <ul>
    {%for p in pages%}
      {%if loop.previtem%}
        {%if loop.previtem.cdate_list_sep !=p.cdate_list_sep%}
          <h3>{{p.cdate_list_sep}}</h3>
        {%endif%}
      {%else%}
        <h3>{{p.cdate_list_sep}}</h3>
      {%endif%}
      <li>{{p.cdate_list}} - <a href="{{p.url}}">{{p.title}}</a></li>
    {%endfor%}
  </ul>
{%endmacro%}