diff --git a/build.py b/build.py index 6d06467..4ff74fa 100755 --- a/build.py +++ b/build.py @@ -69,7 +69,7 @@ class Builder(object): logger = base.getChild(page.rsplit(".", 1)[0]) self._pages.append(page.rsplit(".", 1)[0]) src = os.path.join(self.pages_dir, page) - dest = os.path.join(self.build_dir, page.replace(".mako", ".fcgi")) + dest = os.path.join(self.build_dir, page.replace(".mako", ".py")) logger.debug("build {0} -> {1}".format(src, dest)) content = page_src.replace("{{src}}", src) diff --git a/pages/support/header.mako b/pages/support/header.mako index 01ded9a..67775a1 100644 --- a/pages/support/header.mako +++ b/pages/support/header.mako @@ -9,8 +9,8 @@ pretty = path.split(root)[0] if not slug: slug = path.split(this)[1] - if slug.endswith(".fcgi"): - slug = slug[:-5] + if slug.endswith(".py"): + slug = slug[:-3] %>\