From 122e618183714ee32e26b4c85547b1f20115d495 Mon Sep 17 00:00:00 2001 From: Harishankar Date: Sat, 12 Feb 2011 20:35:26 +0530 Subject: [PATCH] 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 --- biaweb_exporter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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], -- 2.20.1