diff options
| author | Christian Cleberg <[email protected]> | 2026-03-13 17:08:51 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-03-13 17:08:51 -0500 |
| commit | b9fd010d1c483ae982e5cf76f491dcbc351cb9ed (patch) | |
| tree | 7cb436ab85dae5dad561e6e0ee18ac7c1c0ce161 | |
| parent | 15f0d530ac72f25ee21b2197e84da126418e4ab5 (diff) | |
| download | cleberg.net-b9fd010d1c483ae982e5cf76f491dcbc351cb9ed.tar.gz cleberg.net-b9fd010d1c483ae982e5cf76f491dcbc351cb9ed.tar.bz2 cleberg.net-b9fd010d1c483ae982e5cf76f491dcbc351cb9ed.zip | |
fix python syntax warnings
| -rw-r--r-- | build.py | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -183,7 +183,6 @@ def get_recent_posts_html(content_dir="./content/blog", num_posts=3): # Build HTML lines lines = [] - current_year = None for post in recent: lines.append('\t<li class="post-list-item">') lines.append(f'\t\t<time datetime="{post["date_str"]}">{post["date_full"]}</time>') @@ -404,13 +403,19 @@ def generate_tags_page(content_dir="./content/blog", build_dir="./.build"): for line in f: if not title: m = header_patterns["title"].match(line) - if m: title = m.group(1).strip(); continue + if m: + title = m.group(1).strip() + continue if not date_str: m = header_patterns["date"].match(line) - if m: date_str = m.group(1); continue + if m: + date_str = m.group(1) + continue if not slug: m = header_patterns["slug"].match(line) - if m: slug = m.group(1).strip(); continue + if m: + slug = m.group(1).strip() + continue if not tags: m = header_patterns["tags"].match(line) if m: @@ -419,7 +424,8 @@ def generate_tags_page(content_dir="./content/blog", build_dir="./.build"): continue m = header_patterns["draft"].match(line) if m and m.group(1).strip().lower() != "nil": - is_draft = True; break + is_draft = True + break if title and date_str and slug and tags: break |
