From 2149958767d37dbcf8ee809a4a17e1b3ed80c5f5 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Tue, 25 Jun 2024 14:02:06 -0700 Subject: [PATCH] Deprecate unused metadata --- build.py | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/build.py b/build.py index 33925be..5c282d8 100755 --- a/build.py +++ b/build.py @@ -103,36 +103,6 @@ def main(): page.title.string = meta_title[0] page.header.h1.string = meta_title[0] - if meta_date := meta.get("date"): - p = page.new_tag("p") - p["class"] = "metadata" - p.string = "Date: " + meta_date[0] - page.header.append(p) - - if meta_author := meta.get("author"): - p = page.new_tag("p") - p["class"] = "metadata" - p.string = "Author: " + meta_author[0] - page.header.append(p) - - if meta_source := meta.get("source"): - for source_url in meta_source: - a = page.new_tag("a") - a["href"] = source_url - a.string = source_url - p = page.new_tag("p") - p["class"] = "metadata" - p.string = "URL: " - p.append(a) - page.header.append(p) - - if meta_comment := meta.get("comment"): - for comment in meta_comment: - aside = page.new_tag("aside") - html = bs4.BeautifulSoup(comment_md.convert(comment), features="html.parser") - aside.extend(html.p.contents) - page.header.append(aside) - # RSS metadata if "feed" in meta: pubdate = get_pubdate(path.as_posix())