data_dir = '/home/bernie/public_html/wiki/data'
# default page links
+meta_urls = [
+ # http-equiv content
+ [ 'X-XRDS-Location', 'http://www.codewiz.org/yadis.xml' ],
+]
link_urls = [
- # rel href type
+ # rel href
[ 'icon', 'hacker-favicon.ico' ],
[ 'stylesheet', '../wikidata/geekigeeki.css' ],
[ 'openid.server', 'http://www.codewiz.org/openid/index.php' ],
if not name:
print ' <meta name="robots" content="noindex,nofollow" />'
+ for meta in meta_urls:
+ http_equiv, content = meta
+ print ' <meta http-equiv="%s" content="%s" />' % (http_equiv, relative_url(content))
+
for link in link_urls:
rel, href = link
print ' <link rel="%s" href="%s" />' % (rel, relative_url(href))