Skip to content

Commit 4197860

Browse files
committed
Make tags optional for posts
1 parent 094f113 commit 4197860

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to the genja project are documented in this file. The format of this changelog is based on [Keep a Changelog](https://keepachangelog.com). This project adheres to [Calendar Versioning](https://calver.org) based on `YY.MM.MICRO`.
44

5+
## Genja v25.3.1
6+
7+
#### Fixed
8+
9+
- Make tags optional for posts to prevent build errors
10+
511
## Genja v25.3
612

713
#### Added

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "genja"
3-
version = "25.3"
3+
version = "25.3.1"
44
authors = [{name = "Gavin Wiggins"}]
55
description = "Static site generator for GitHub Pages"
66
readme = "README.md"

src/genja/builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def _build_posts(
6161
# Get meta data from the Markdown file
6262
meta = mdown.Meta # pyright: ignore
6363
title = meta["title"][0]
64-
tags = meta["tags"][0]
64+
tags = meta.get("tags", ["none"])[0]
6565
long_date = meta["date"][0]
6666
iso_date = datetime.strptime(meta["date"][0], "%B %d, %Y").isoformat() + "Z"
6767

0 commit comments

Comments
 (0)