summaryrefslogtreecommitdiff
path: root/art/plt/page_list.html
blob: bd1f6782a0eb16bc41163021f531ee56286ead5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{%macro print(pages)%}
  <h2>Articles</h2>
  <ul class="page-list">
    {%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%}