From 482b47b6aa1ec2c97572a33f1c1faf8f7edf1b67 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Thu, 14 May 2015 17:37:07 -0700 Subject: [PATCH] Allow overriding partial blog index template --- rophako/modules/blog/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rophako/modules/blog/__init__.py b/rophako/modules/blog/__init__.py index ff413f1..f6a8846 100644 --- a/rophako/modules/blog/__init__.py +++ b/rophako/modules/blog/__init__.py @@ -403,7 +403,7 @@ def xml_add_text_tags(doc, root_node, tags): root_node.appendChild(channelTag) -def partial_index(): +def partial_index(template_name="blog/index.inc.html"): """Partial template for including the index view of the blog.""" # Get the blog index. @@ -494,7 +494,7 @@ def partial_index(): g.info["category"] = category g.info["posts"] = selected - return template("blog/index.inc.html") + return template(template_name) def get_index_posts(index):