瀏覽代碼

Allow overriding partial blog index template

pull/2/head
Noah Petherbridge 5 年之前
父節點
當前提交
482b47b6aa
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      rophako/modules/blog/__init__.py

+ 2
- 2
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):


Loading…
取消
儲存