summaryrefslogtreecommitdiff
path: root/panfry/document.py
diff options
context:
space:
mode:
authorScott Bahling <sbahling@mudgum.net>2013-03-18 21:26:55 +0100
committerScott Bahling <sbahling@mudgum.net>2013-03-18 21:26:55 +0100
commit38c9212352bff6b400995c401b304af7dd667cd9 (patch)
treec7fa8d895750f86254438bbb931b6605de091b8d /panfry/document.py
parentc483362f5afcc5ae9e89e560148cc4129e4d62da (diff)
downloadpanfry-38c9212352bff6b400995c401b304af7dd667cd9.tar.gz
panfry-38c9212352bff6b400995c401b304af7dd667cd9.tar.xz
panfry-38c9212352bff6b400995c401b304af7dd667cd9.zip
Add header with page source on html generation
Diffstat (limited to 'panfry/document.py')
-rwxr-xr-xpanfry/document.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/panfry/document.py b/panfry/document.py
index 5ff7ee6..7bb06b4 100755
--- a/panfry/document.py
+++ b/panfry/document.py
@@ -146,7 +146,7 @@ class Document:
doc.add_argument('toc')
doc.add_argument('template=%s' % template_file.name)
doc.add_argument('css=%s' % self.css_file)
- doc.markdown = page.source
+ doc.markdown = '%s\n%s' % (self.meta['HEADER'], page.source)
content = doc.html
write_file(os.path.join(pub_path, page.htmlfile),
unicode(content, 'utf-8'))