summaryrefslogtreecommitdiff
path: root/plt/blog/page_list.html
blob: 05ce6480cc566c28f336bc36ab9367cb551b049d (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><span class="page-list-item">{{p.cdate('list_date')}}</span> - <a href="{{p.url}}">{{p.title}}</a></li>
    {%endfor%}
  </ul>
{%endmacro%}