summaryrefslogtreecommitdiff
path: root/plt/blog/page_list.html
blob: b818884678b61e20f32196f52cf8d5410921d9b8 (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 != 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%}