Commit 5c753f42 authored by Mattia Rizzolo's avatar Mattia Rizzolo

Re-add OPML and FoaF with some templates provided by wouter

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mapreri@ubuntu.com>
parent d7de6ab8
......@@ -19,7 +19,7 @@ new_feed_items = 10
log_level = DEBUG
# template_files: Space-separated list of output template files
template_files = themes/ubuntuit/index.html.tmpl themes/ubuntuit/rss20.xml.tmpl
template_files = themes/ubuntuit/index.html.tmpl themes/ubuntuit/rss20.xml.tmpl themes/planetgrep/opml.xml.tmpl themes/planetgrep/foafroll.xml.tmpl
# ptlink doesn't support template in XSLT, so the followings are not produced anymore.
# the old templates are kept "because you never know"
# themes/common/atom.xml.xslt themes/common/foafroll.xml.xslt themes/common/opml.xml.xslt
......
These templates come from https://github.com/yoe/planetgrep
Please give your thanks to Wouter Verhelst.
<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:rss="http://purl.org/rss/1.0/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
>
<foaf:Group>
<foaf:name><TMPL_VAR name></foaf:name>
<foaf:homepage><TMPL_VAR link ESCAPE="HTML"></foaf:homepage>
<rdfs:seeAlso rdf:resource="<TMPL_VAR uri ESCAPE="HTML">" />
<TMPL_LOOP Channels>
<foaf:member>
<foaf:Agent>
<foaf:name><TMPL_VAR name></foaf:name>
<foaf:weblog>
<foaf:Document rdf:about="<TMPL_VAR link ESCAPE="HTML">">
<dc:title><TMPL_VAR title></dc:title>
<rdfs:seeAlso>
<rss:channel rdf:about="<TMPL_VAR uri ESCAPE="HTML">" />
</rdfs:seeAlso>
</foaf:Document>
</foaf:weblog>
</foaf:Agent>
</foaf:member>
</TMPL_LOOP>
</foaf:Group>
</rdf:RDF>
<?xml version="1.0"?>
<opml version="1.1">
<head>
<title><TMPL_VAR name></title>
<dateCreated><TMPL_VAR date_822></dateCreated>
<dateModified><TMPL_VAR date_822></dateModified>
<ownerName><TMPL_VAR owner_name></ownerName>
<ownerEmail><TMPL_VAR owner_email></ownerEmail>
</head>
<body>
<TMPL_LOOP Channels>
<outline text="<TMPL_VAR name ESCAPE="HTML">" xmlUrl="<TMPL_VAR url ESCAPE="HTML">"/>
</TMPL_LOOP>
</body>
</opml>
......@@ -44,7 +44,11 @@
<div class="container">
<div class="container-inside">
<ul class="links secondary-links">
<li><a href="rss20.xml">Feed RSS 2.0</a></li>
<li>Feeds:</li>
<li><a href="rss20.xml">RSS 2.0</a></li>
<!-- <li><a href="atom.xml">Atom</a></li> -->
<li><a href="opml.xml">OPML</a></li>
<li><a href="foafroll.xml">FoaF</a></li>
</ul>
</div>
</div>
......@@ -71,8 +75,11 @@
conforme al Codice di Condotta.
</p>
<p>
Potete seguire questo planet con il feed
<a href="rss20.xml">RSS 2.0</a>.
Potete seguire questo planet nei seguenti
formati: <a href="rss20.xml">RSS 2.0</a>,
<!-- <a href="atom.xml">Atom</a>, -->
<a href="opml.xml">OPML</a> e
<a href="foafroll.xml">FoaF</a>.
</p>
</div>
<div class="container">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment