Removed the need for headers in site docs.

This commit is contained in:
Paul J. Davis 2010-02-19 14:23:42 -05:00
parent d4834a68c6
commit 02a2717d40
4 changed files with 1 additions and 6 deletions

View File

@ -104,7 +104,7 @@ class Page(object):
tgt.write(contents)
def render(self):
tmpl_name = self.headers.get('template', conf.DEFAULT_TEMPLATE)
tmpl_name = self.headers.get('template')
if not tmpl_name:
return self.body

View File

@ -10,9 +10,6 @@ SITE_NAME = "Green Unicorn"
SITE_URL = "http://www.gunicorn.org"
SITE_DESCRIPTION = "A Python port of Ruby's Unicorn project."
DEFAULT_TEMPLATE = "default.html"
CONTENT_TYPE = "textile"
# paths
DOC_PATH = os.path.dirname(os.path.abspath(__file__))
TEMPLATES_PATH = os.path.join(DOC_PATH, "templates")

0
doc/site/.nojekyll Normal file
View File

View File

@ -1,3 +1 @@
template:
gunicorn.org