Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tankywoo committed May 24, 2015
1 parent e31b74d commit 8f1c779
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions simiki/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,14 @@ def get_layout(meta):

def get_template_vars(self, meta, content):
"""Get template variables, include site config and page config"""
category, _ = self.get_category_and_file()
page = {"category": category, "content": content}
category, src_fname = self.get_category_and_file()
dst_fname = src_fname.replace(
".{0}".format(self.site_config["default_ext"]), ".html")
page = {
"category": category,
"content": content,
"filename": dst_fname
}
page.update(meta)
template_vars = {
"site": self.site_config,
Expand Down

0 comments on commit 8f1c779

Please sign in to comment.