1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4 ### Fancy Planet HTML template.
6 ### When combined with the stylesheet and images in the output/ directory
7 ### of the Planet source, this gives you a much prettier result than the
8 ### default examples template and demonstrates how to use the config file
9 ### to support things like faces
11 ### For documentation on the more boring template elements, see
12 ### examples/config.ini and examples/index.html.tmpl in the Planet source.
15 <title><TMPL_VAR name></title>
16 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
17 <meta name="generator" content="<TMPL_VAR generator ESCAPE="HTML">">
18 <link rel="stylesheet" href="planet.css" type="text/css">
20 <link rel="alternate" href="<TMPL_VAR feed ESCAPE="HTML">" title="<TMPL_VAR channel_title_plain ESCAPE="HTML">" type="application/<TMPL_VAR feedtype>+xml">
25 <h1><TMPL_VAR name></h1>
29 <TMPL_UNLESS __FIRST__>
30 ### End <div class="channelgroup">
32 ### End <div class="daygroup">
35 <div class="daygroup">
36 <h2><TMPL_VAR new_date></h2>
40 <TMPL_UNLESS new_date>
41 ### End <div class="channelgroup">
44 <div class="channelgroup">
46 ### Planet provides template variables for *all* configuration options for
47 ### the channel (and defaults), even if it doesn't know about them. We
48 ### exploit this here to add hackergotchi faces to our channels. Planet
49 ### doesn't know about the "face", "facewidth" and "faceheight" configuration
50 ### variables, but makes them available to us anyway.
52 <h3><a href="<TMPL_VAR channel_link ESCAPE="HTML">" title="<TMPL_VAR channel_title_plain ESCAPE="HTML">"><TMPL_VAR channel_name></a></h3>
53 <TMPL_IF channel_face>
54 <img class="face" src="images/<TMPL_VAR channel_face ESCAPE="HTML">" width="<TMPL_VAR channel_facewidth ESCAPE="HTML">" height="<TMPL_VAR channel_faceheight ESCAPE="HTML">" alt="">
59 <div class="entrygroup" id="<TMPL_VAR id>"<TMPL_IF channel_language> lang="<TMPL_VAR channel_language>"</TMPL_IF>>
61 <h4<TMPL_IF title_language> lang="<TMPL_VAR title_language>"</TMPL_IF>><a href="<TMPL_VAR link ESCAPE="HTML">"><TMPL_VAR title></a></h4>
64 <div class="content"<TMPL_IF content_language> lang="<TMPL_VAR content_language>"</TMPL_IF>>
68 ### Planet also makes available all of the information from the feed
69 ### that it can. Use the 'planet-cache' tool on the cache file for
70 ### a particular feed to find out what additional keys it supports.
71 ### Comment extra fields are 'author' and 'category' which we
72 ### demonstrate below.
75 <a href="<TMPL_VAR link ESCAPE="HTML">"><TMPL_IF author>by <TMPL_VAR author> at </TMPL_IF><TMPL_VAR date><TMPL_IF category> under <TMPL_VAR category></TMPL_IF></a>
81 ### End <div class="channelgroup">
83 ### End <div class="daygroup">
91 <h2>Subscriptions</h2>
95 <a href="<TMPL_VAR url ESCAPE="HTML">" title="subscribe"><img src="images/feed-icon-10x10.png" alt="(feed)"></a> <a <TMPL_IF link>href="<TMPL_VAR link ESCAPE="HTML">" </TMPL_IF><TMPL_IF message>class="message" title="<TMPL_VAR message ESCAPE="HTML">"</TMPL_IF><TMPL_UNLESS message>title="<TMPL_VAR title_plain ESCAPE="HTML">"</TMPL_UNLESS>><TMPL_VAR name></a>
101 <strong>Last updated:</strong><br>
103 <em>All times are UTC.</em><br>
106 <a href="http://www.planetplanet.org/"><img src="images/planet.png" width="80" height="15" alt="Planet" border="0"></a>