From adf0fd62361a085ac014efa4985647864a46f603 Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Thu, 11 Dec 2008 03:51:22 +0100 Subject: [PATCH] Allow specifying custom tags in HTML head --- geekigeeki.conf.py | 6 +++++- geekigeeki.py | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/geekigeeki.conf.py b/geekigeeki.conf.py index 31cf046..447572a 100644 --- a/geekigeeki.conf.py +++ b/geekigeeki.conf.py @@ -8,8 +8,12 @@ privileged_url = 'https://www.develer.com/~bernie/wiki' 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' ], diff --git a/geekigeeki.py b/geekigeeki.py index 4e9e788..1e2b065 100755 --- a/geekigeeki.py +++ b/geekigeeki.py @@ -126,6 +126,10 @@ def send_title(name, text="Limbo", msg_text=None, msg_type='error', writable=Fal if not name: print ' ' + for meta in meta_urls: + http_equiv, content = meta + print ' ' % (http_equiv, relative_url(content)) + for link in link_urls: rel, href = link print ' ' % (rel, relative_url(href)) -- 2.25.1