From 764445111d6e7e90af5b52ed9064e8c9674ffe6f Mon Sep 17 00:00:00 2001 From: Ari Archer Date: Tue, 1 Nov 2022 03:31:50 +0200 Subject: [PATCH] update @ Tue 1 Nov 03:31:50 EET 2022 Signed-off-by: Ari Archer --- content/styles.css | 2 +- scripts/blog | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/content/styles.css b/content/styles.css index aff96bb..7314496 100644 --- a/content/styles.css +++ b/content/styles.css @@ -84,7 +84,7 @@ body { text-rendering: optimizeSpeed; } -h1 { +header > h1 { text-align: center; margin: 1em; font-size: 2em; diff --git a/scripts/blog b/scripts/blog index ce40f76..e1f92b8 100755 --- a/scripts/blog +++ b/scripts/blog @@ -258,10 +258,9 @@ class AddHeaderLinks(Treeprocessor): "h5": 0.87, "h6": 0.76, } - all_headings: Tuple[str] = tuple(f"h{hl}" for hl in range(2, 7)) for idx, elem in enumerate(root): - if elem.tag not in all_headings: + if elem.tag not in heading_sizes_em: continue gen_id: str = sanitise_title(elem.text, ids) @@ -509,8 +508,6 @@ def build(config: Dict) -> Tuple[int, Dict]: AddHeaderLinksExt(), ], ) - .replace("

", "

") - .replace("

", "

") .replace("
", '
')
                     .replace(
                         "
", '
'