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(
                         "
", '
'