constance

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

templates/tags/index.html (490B) - raw

      1 <html xmlns="http://www.w3.org/1999/xhtml"
      2       xmlns:py="http://genshi.edgewall.org/"
      3 	  lang="en-AU">
      4 
      5 <head>
      6     <title>Tag cloud</title>
      7 </head>
      8 <body>
      9 <section>
     10 <h1>Tag cloud</h1>
     11 
     12 <ol id="tagcloud">
     13     <li py:for="tag, freq in sorted(tag_freqs.iteritems(), key=lambda (t, f): t.lower())">
     14         <a rel="tag" href="${tag}" style="font-size: ${0.8 + (freq / 10.)}em;">${tag}</a>
     15         <span class="frequency">(used ${freq} times)</span>
     16     </li>
     17 </ol>
     18 </section>
     19 </body>
     20 </html>