summaryrefslogtreecommitdiff
path: root/src/pyssg/plt/tag.html
blob: 2dd71773f43b2501ee201dfc26a586db24a8ab0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <base href="{{config['url']['static']}}">
    <title>Posts filtered by {{tag[0]}} -- {{config['title']}}</title>
  </head>
  <body>
  <h1>Posts filtered by {{tag[0]}}</h1>
  <p>Some text here.</p>

  <h2>Articles</h2>
  <ul>
  {%for p in tag_pages%}
    {%if loop.previtem%}
      {%if loop.previtem.cdatetime.strftime(config['fmt']['list_sep_date']) != p.cdatetime.strftime(config['fmt']['list_sep_date'])%}
        <h3>{{p.cdatetime.strftime(config['fmt']['list_sep_date'])}}</h3>
      {%endif%}
    {%else%}
        <h3>{{p.cdatetime.strftime(config['fmt']['list_sep_date'])}}</h3>
    {%endif%}
    <li>{{p.cdatetime.strftime(config['fmt']['list_date'])}} - <a href="{{p.url}}">{{p.title}}</a></li>
  {%endfor%}
  </ul>
  </body>
</html>