From 9d11c25bf162bc3a90a32d63720ac26442d18128 Mon Sep 17 00:00:00 2001 From: tiyn Date: Sat, 20 Apr 2024 01:02:40 +0200 Subject: [PATCH] styling: improved date on standalone articles --- src/content.py | 3 +-- src/static/css/style.css | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/content.py b/src/content.py index 3e41206..94cf959 100644 --- a/src/content.py +++ b/src/content.py @@ -116,11 +116,10 @@ def gen_stand_string(path_ex): content_string += "

" + title + "

\n" content_string += "" + curr_date + "" - content_string += "
\n" + content_string += "

\n" if filename.endswith(".html"): for line in text: content_string += line - content_string += "
" if filename.endswith(".md"): content_string += gen_md_content(filename, 1) return content_string diff --git a/src/static/css/style.css b/src/static/css/style.css index 31aca74..884df91 100644 --- a/src/static/css/style.css +++ b/src/static/css/style.css @@ -177,6 +177,10 @@ h3 { padding-bottom: 10px; } +.standalone h1:first-child { + padding-bottom: 0; +} + .imprint h1:first-child { padding-bottom: 20px; }