constance

Scripts for generating (an earlier obsolete version of) my personal web site
git clone https://code.djc.id.au/git/constance/
commit a535a034bf46e1521d4da225810d66a156ca5821
parent bb62e0e43cc970ef7b20d70276123336efae2868
Author: Dan Callaghan <djc@djc.id.au>
Date:   Sun, 30 Mar 2014 19:11:00 +1000

make openid_delegate and xrds optional

Diffstat:
Mtemplates/homepage/index.html | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/templates/homepage/index.html b/templates/homepage/index.html
@@ -11,7 +11,7 @@ from viewutils import markdown, mini_markdown, tag_list
     <link rel="alternate" type="application/atom+xml" title="Atom feed" href="firehose.atom" />
     <title>${config.get('homepage', 'title')}</title>
     <meta py:if="config.get('homepage', 'icbm')" name="ICBM" content="${config.get('homepage', 'icbm')}" />
-    <py:if test="config.get('homepage', 'openid_delegate')">
+    <py:if test="config.has_option('homepage', 'openid_delegate')">
         <link rel="openid.delegate" href="${config.get('homepage', 'openid_delegate')}" />
         <link rel="openid2.local_id" href="${config.get('homepage', 'openid_delegate')}" />
     </py:if>
@@ -19,7 +19,7 @@ from viewutils import markdown, mini_markdown, tag_list
         <link rel="openid.server" href="${config.get('homepage', 'openid_server')}" />
         <link rel="openid2.provider" href="${config.get('homepage', 'openid_server')}" />
     </py:if>
-    <meta py:if="config.get('homepage', 'xrds')" http-equiv="X-XRDS-Location" content="${config.get('homepage', 'xrds')}" />
+    <meta py:if="config.has_option('homepage', 'xrds')" http-equiv="X-XRDS-Location" content="${config.get('homepage', 'xrds')}" />
 </head>
 
 <body>