summaryrefslogtreecommitdiff
path: root/plt/blog/page_list.html
blob: 33201f820947084f0c1b51158e21c6a8908dd859 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{%macro print(name, pages)%}
  <h2>{{name}}</h2>
  <ul class="page-list">
    {%for p in pages%}
      {%if loop.previtem%}
        {%if loop.previtem.cdate('list_sep_date') != p.cdate('list_sep_date')%}
          <h3>{{p.cdate('list_sep_date')}}</h3>
        {%endif%}
      {%else%}
        <h3>{{p.cdate('list_sep_date')}}</h3>
      {%endif%}
      <li>{{p.cdate('list_date')}} - <a href="{{p.url}}">{{p.title}}</a></li>
    {%endfor%}
  </ul>
{%endmacro%}