diff options
Diffstat (limited to 'share/templates')
-rw-r--r-- | share/templates/changes.tmpl | 12 | ||||
-rw-r--r-- | share/templates/index.tmpl | 8 | ||||
-rw-r--r-- | share/templates/rss.tmpl | 23 |
3 files changed, 43 insertions, 0 deletions
diff --git a/share/templates/changes.tmpl b/share/templates/changes.tmpl new file mode 100644 index 0000000..fa610b1 --- /dev/null +++ b/share/templates/changes.tmpl @@ -0,0 +1,12 @@ +[% IF prefix %][% prefix %][% ELSE %]\heading[Recent Changes][indent] + +\h1[Recent Changes][% END %][% FOREACH month IN entries %] +\h2[[% month.heading %]] +[% FOREACH entry IN month.entries %] +\desc[[% entry.date %] — + \link[[% entry.link %]] + [[% entry.title %]]][ +[% entry.description %]] +[% END %] +[% END %] +\signature diff --git a/share/templates/index.tmpl b/share/templates/index.tmpl new file mode 100644 index 0000000..b62b7ed --- /dev/null +++ b/share/templates/index.tmpl @@ -0,0 +1,8 @@ +[% prefix %][% FOREACH entry IN entries %] +\h2[[% entry.day %]: [% entry.title %]] + +[% entry.text %]\class(footer)[[% entry.date %] — + \link[[% entry.link %]] + [Permanent link]] +[% END %][% IF suffix %][% suffix %][% END %] +\signature diff --git a/share/templates/rss.tmpl b/share/templates/rss.tmpl new file mode 100644 index 0000000..13a3ede --- /dev/null +++ b/share/templates/rss.tmpl @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> + <channel> + <title>[% title | xml %]</title> + <link>[% base | xml %]</link> + <description>[% description | xml %]</description> + <language>[% language | xml %]</language> + <pubDate>[% latest | xml %]</pubDate> + <lastBuildDate>[% now | xml %]</lastBuildDate> + <generator>DocKnot [% docknot_version | xml %]</generator>[% IF url %] + <atom:link href="[% url | url %]" rel="self" + type="application/rss+xml" />[% END %] + +[% FOREACH entry IN entries %] <item> + <title>[% entry.title | xml %]</title> + <link>[% entry.link | xml %]</link> + <description><![CDATA[ +[% entry.description %] ]]></description> + <pubDate>[% entry.date | xml %]</pubDate> + <guid[% IF !entry.guid.match('^http') %] isPermaLink="false"[% END %]>[% entry.guid | xml %]</guid> + </item> +[% END %] </channel> +</rss> |