diff --git a/build.py b/build.py index c1f33e6..c51cafb 100644 --- a/build.py +++ b/build.py @@ -322,9 +322,9 @@ def build(): ctx["content"] = render(p["body"].strip("\n") + "\n", ctx, name) lead = p.get("lead", "back") ctx["lead"] = render(tpl["lead-" + lead], ctx, f"templates/lead-{lead}.html") + ctx["feed"] = render(tpl["feed"], ctx, "templates/feed.html") ctx["badges"] = render(tpl["badges"], dict(ctx, doc_q=ctx["doc_url"].replace(":", "%3A").replace("/", "%2F")), "templates/badges.html") - ctx["feed"] = render(tpl["feed"], ctx, "templates/feed.html") ctx["header"] = render(tpl["header"], ctx, "templates/header.html") ctx["footer"] = render(tpl["footer"], ctx, "templates/footer.html") rel = p["path"].lstrip("/") diff --git a/static/style.css b/static/style.css index a2b8320..1ce5120 100644 --- a/static/style.css +++ b/static/style.css @@ -106,8 +106,11 @@ code { height: auto; } -svg { - vertical-align: middle; +.badges { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: .5em; } @media print { @@ -119,7 +122,7 @@ svg { --link: #000; } - header, .badges, .feed { + header, .badges { display: none; } diff --git a/templates/badges.html b/templates/badges.html index 2802b66..7e39575 100644 --- a/templates/badges.html +++ b/templates/badges.html @@ -1,4 +1,5 @@
diff --git a/templates/feed.html b/templates/feed.html index 12f04b3..4428eff 100644 --- a/templates/feed.html +++ b/templates/feed.html @@ -1,3 +1 @@ - + diff --git a/templates/footer.html b/templates/footer.html index c772da0..d859060 100644 --- a/templates/footer.html +++ b/templates/footer.html @@ -3,6 +3,5 @@{{nojs}}
-{{feed}} {{badges}}