constance

Scripts for generating (an earlier obsolete version of) my personal web site
git clone https://code.djc.id.au/git/constance/

templates/tags/tag.html (702B) - raw

      1 <html xmlns="http://www.w3.org/1999/xhtml"
      2       xmlns:py="http://genshi.edgewall.org/"
      3 	  lang="en-AU">
      4 
      5 <?python
      6 from itertools import groupby
      7 from viewutils import markdown, mini_markdown, tag_list
      8 ?>
      9 
     10 <head>
     11     <title>&ldquo;${tag}&rdquo; tag</title>
     12 </head>
     13 
     14 <body>
     15 <section>
     16     <h1>&ldquo;${tag}&rdquo; tag</h1>
     17 
     18     <ul class="blog-index">
     19         <li py:for="item in sorted(items, key=lambda e: e.publication_date, reverse=True)">
     20             <a href="../blog/${item.id}">${item.title}</a>
     21             <time datetime="${item.publication_date.strftime(str('%Y-%m-%d %H:%M:%S%Z'))}">${item.publication_date.strftime(str('%-1d %B %Y'))}</time>
     22         </li>
     23     </ul>
     24 </section>
     25 </body>
     26 </html>