Minor changes to site generator
authorHarishankar <v.harishankar@gmail.com>
Sat, 12 Feb 2011 15:05:26 +0000 (20:35 +0530)
committerHarishankar <v.harishankar@gmail.com>
Sat, 12 Feb 2011 15:05:26 +0000 (20:35 +0530)
Added a minor change to the site generator which adds
category title and article title to the generated page
title

biaweb_exporter.py

index 2f1a306..6cba706 100644 (file)
@@ -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],