constance

Scripts for generating (an earlier obsolete version of) my personal web site
git clone https://code.djc.id.au/git/constance/
commit 8db3c1041de5c3dfaa1ec3d8ce7f2c8307817852
parent 68b6cdea38578c7924bc937c6fb3da25de0e6fb2
Author: Sam Kingston <sam@sjkwi.com.au>
Date:   Sun, 10 Oct 2010 19:36:29 +1000

moved email address into config

Diffstat:
Mconstance.py | 1+
Mtemplates/blog/entry.atom | 2+-
Mtemplates/reading/entry.atom | 2+-
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/constance.py b/constance.py
@@ -38,6 +38,7 @@ xslt = ./style.xsl
 
 [template]
 website = http://localhost
+email = user@domain.com
 """
 
 def main():
diff --git a/templates/blog/entry.atom b/templates/blog/entry.atom
@@ -13,7 +13,7 @@ from viewutils import ATOM_TIME_FORMAT
 <updated>${item.modified_date.strftime(ATOM_TIME_FORMAT)}</updated>
 <author>
     <name>Dan C</name>
-    <email>djc@djc.id.au</email>
+    <email>${template_config.get('email')}</email>
 </author>
 <category py:for="tag in item.tags" scheme="${template_config.get('website')}/tags/" term="${tag}" />
 <link rel="alternate" href="${template_config.get('website')}/blog/${urllib.quote(item.id.encode('utf8'), '')}" />
diff --git a/templates/reading/entry.atom b/templates/reading/entry.atom
@@ -11,7 +11,7 @@ from viewutils import ATOM_TIME_FORMAT
 <updated>${item.modified_date.strftime(ATOM_TIME_FORMAT)}</updated>
 <author>
     <name>Dan C</name>
-    <email>djc@djc.id.au</email>
+    <email>${template_config.get('email')}</email>
 </author>
 <category py:for="tag in item.tags" scheme="${template_config.get('website')}/tags/" term="${tag}" />
 <title type="text">${item.title.striptags()} by ${item.author}</title>