Commits

faassen committed 3b44693

Get rid of global 'defaults' dictionary by making it a local.

  • Participants
  • Parent commits 3720d7f

Comments (0)

Files changed (1)

 DESCRIPTION = config.get('content', 'description')
 ENTRIES_PATH = config.get('content', 'entries_path')
 
-CSS_URL = config.get('html', 'css_url')
 TEMPLATES_PATH = config.get('html', 'templates_path')
 BASE = config.get('html', 'base_url')
 
 DISQUS_NAME = config.get('disqus', 'name')
 
-defaults = {'disqus_name': DISQUS_NAME, 
-            'css': CSS_URL + "?" + str(int(time())), #force reload. 
-            'page_title': TITLE,
-            'blaag_title': TITLE,
-            'author': AUTHOR}
-
 def make_template(name):
     f = open(os.path.join(TEMPLATES_PATH, name), 'r')
     result = Template(f.read().decode('utf-8'))
                           for parts in data])
 
     html_path = config.get('html', 'html_path')
-    
+
+
+    defaults = {
+        'disqus_name': config.get('disqus', 'name'),
+        'css': config.get('html', 'css_url') + "?" + str(int(time())), #force reload. 
+        'page_title': config.get('content', 'title'),
+        'blaag_title': config.get('content', 'title'),
+        'author': config.get('content', 'author'),
+        }
+
     for parts in data: 
         parts.update(defaults)
         htmltitle = identifier(parts)