1
0
mirror of https://github.com/tiyn/beaker-blog.git synced 2025-04-01 15:07:46 +02:00

styling: improved date on standalone articles

This commit is contained in:
tiyn 2024-04-20 01:02:40 +02:00
parent 00686923b4
commit 9d11c25bf1
2 changed files with 5 additions and 2 deletions

View File

@ -116,11 +116,10 @@ def gen_stand_string(path_ex):
content_string += "<h1>" + title + "</h1>\n"
content_string += "<a href=\"" + "/index.html#" + \
filename_no_end + "\">" + curr_date + "</a>"
content_string += "<br>\n"
content_string += "<br><br>\n"
if filename.endswith(".html"):
for line in text:
content_string += line
content_string += "<br>"
if filename.endswith(".md"):
content_string += gen_md_content(filename, 1)
return content_string

View File

@ -177,6 +177,10 @@ h3 {
padding-bottom: 10px;
}
.standalone h1:first-child {
padding-bottom: 0;
}
.imprint h1:first-child {
padding-bottom: 20px;
}