Commits

Fredrik Håård committed 1d2504e Draft

Fixes page title

  • Participants
  • Parent commits ec4ed1d
  • Branches genshi

Comments (0)

Files changed (1)

         if not os.path.exists(article.path):
             os.mkdir(article.path)
 
-        with open(os.path.join(article.path, "index.html"), "w") as target:            
+        with open(os.path.join(article.path, "index.html"), "w") as target:
             stream = template.generate(articles=[article], all_articles=articles, 
                                        short_comments=False,
-                                       **defaults)
+                                       
+                                       **dict(defaults,page_title=article.article_title))
             target.write(stream.render("html", doctype="html"))