diff --git a/notes2web.py b/notes2web.py index 9f5ddbc..bfb67dc 100755 --- a/notes2web.py +++ b/notes2web.py @@ -193,10 +193,10 @@ def main(args): html = re.sub(r'\$title\$', title, TEXT_ARTICLE_TEMPLATE_HEAD) html = re.sub(r'\$h1title\$', title, html) html = re.sub(r'\$raw\$', os.path.basename(filename), html) + html = html.replace('$filehistory$', filehistory) with open(filename) as fp: html += fp.read() html += TEXT_ARTICLE_TEMPLATE_FOOT - html = html.replace(r'$filehistory$', filehistory) with open(output_filename, 'w+') as fp: fp.write(html) diff --git a/styles.css b/styles.css index 7afae1c..6247f7a 100644 --- a/styles.css +++ b/styles.css @@ -95,3 +95,8 @@ blockquote * { .matchHighlight { background-color: #86c1b9; } + +#header > * { + margin: 0; + padding: 0 +} diff --git a/templates/article.html b/templates/article.html index 06c2db6..1a1b728 100644 --- a/templates/article.html +++ b/templates/article.html @@ -9,18 +9,19 @@ +