diff --git a/build.py b/build.py index 4d31193..ea06fab 100755 --- a/build.py +++ b/build.py @@ -100,6 +100,12 @@ def main(): p.append(a) page.header.append(p) + if meta_comment := meta.get("comment"): + for comment in meta_comment: + aside = page.new_tag("aside") + aside.string = comment + page.header.append(aside) + # Write the fully templated page print("Writing ", dest) dest.write_text(str(page)) diff --git a/src/.template.html b/src/.template.html index 6416455..0bcddb9 100644 --- a/src/.template.html +++ b/src/.template.html @@ -18,6 +18,22 @@ header .metadata { font-size: small; margin-block: 0; } +header aside { + margin: 1em; + font-size: smaller; + font-style: italic; +} +header aside::before { + content: "/* "; +} +header aside::after { + content: " */" +} +header::after { + content: ""; + display: block; + border-top: 1px solid gray; +} h1 { line-height: 1em; } @@ -36,11 +52,6 @@ sup { :target { background: palegoldenrod; } -header::after { - content: ""; - display: block; - border-top: 1px solid gray; -}