From: Harishankar Date: Sat, 12 Feb 2011 15:05:26 +0000 (+0530) Subject: Minor changes to site generator X-Git-Url: https://harishankar.org/repos/?a=commitdiff_plain;h=122e618183714ee32e26b4c85547b1f20115d495;p=biaweb_qt.git Minor changes to site generator Added a minor change to the site generator which adds category title and article title to the generated page title --- diff --git a/biaweb_exporter.py b/biaweb_exporter.py index 2f1a306..6cba706 100644 --- a/biaweb_exporter.py +++ b/biaweb_exporter.py @@ -219,7 +219,7 @@ def generate_article_pages (dbname, conf, templates, category_str, bestrated_str article_contents = art[4]) # now build the article page - articlepage_str = tpl_main.safe_substitute (site_title = conf[1], + articlepage_str = tpl_main.safe_substitute (site_title = art[1], site_url = "http://" + conf[0], meta_keywords = art[3], meta_description = art[2], @@ -282,7 +282,7 @@ def generate_category_indices (dbname, conf, templates, category_str, bestrated_ table_rows = tablerows_str) # now create the index page - categoryindex_str = tpl_main.safe_substitute (site_title = conf[1], + categoryindex_str = tpl_main.safe_substitute (site_title = conf[1] + " - " + cat[1], site_url = "http://" + conf[0], meta_keywords = conf[2], meta_description = cat[2],