From 7e85e2a1faa3bd78221910c47ac8dd63716df1fd Mon Sep 17 00:00:00 2001
From: Alvie Rahman
Date: Sat, 21 Aug 2021 02:29:00 +0100
Subject: [PATCH] styling
---
notes2web.py | 2 +-
styles.css | 5 +++++
templates/article.html | 11 ++++++-----
templates/textarticlefoot.html | 7 -------
templates/textarticlehead.html | 9 +++++++++
5 files changed, 21 insertions(+), 13 deletions(-)
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 @@
+
+
$title$
This file was not rendered by notes2web because it is a plaintext file, not a markdown
file.