Skip to main content

Generate a dated Updates (blog) section for zensical sites as plain Markdown

Project description

zensical-updates

Generate a dated "Updates" (blog) section for zensical sites as plain Markdown. zensical ships no blog plugin, so this CLI runs as a pre-build step. It reads your post files and writes an index listing, per-year archives, and tag and category pages that zensical then builds.

How it works

Writers keep posts in a source directory (default updates/), one Markdown file per post. Each post carries a date and optional categories/tags in block-list front matter:

---
date: 2026-06-11
categories:
  - weekly-update
tags:
  - epf
---

# Hello world

The first paragraph becomes the listing excerpt.

zensical-updates build copies each post to docs/<base>/<slug>.md and writes the generated section around it (the index, archive/, tags/, categories/). A post at docs/updates/hello.md renders at /updates/hello/, and every generated link points there. Run it before zensical:

zensical-updates build              # writes docs/updates/
zensical build --clean --strict

The generated docs/<base>/ tree is build output. Gitignore it. The source tree stays under version control, and the generator never edits it.

Install

uv add zensical-updates
# or: pip install zensical-updates

Configure

Settings live in zensical.toml under [project.extra.zensical_updates], a namespace zensical ignores:

[project.extra.zensical_updates]
base = "updates"        # section dir under docs/ and the URL base
source = "updates"      # where your post files live, outside docs/
emit_tags = true
emit_categories = true
emit_archive = true

Every key is optional. The defaults above apply when the table is absent.

Feed

With site_url set in zensical.toml, the build writes an RSS 2.0 feed to docs/<base>/feed.xml, served at <site_url>/<base>/feed.xml (for the default section, /updates/feed.xml). Each item carries a short summary in <description> (the post excerpt) and the full post HTML in <content:encoded>, rendered by zensical so it matches the site, with every link rewritten to a fully-qualified URL for readers off-site. A post with no excerpt keeps the full HTML in <description>. Without site_url the build prints a warning and skips the feed, since an off-site feed needs absolute links.

Two config keys tune it:

[project.extra.zensical_updates]
emit_feed = true   # generate feed.xml (default)
feed_limit = 0     # max items, 0 means no cap (default)

Taxonomy pages

The Tags and Categories index pages list their terms as a frequency-ordered cloud: busiest term first, with each term's post count. The main Updates index and each index page carry a Browse: line linking the Tags, Categories, and Archive index pages, so a reader can move between them. Only the indexes you enable (emit_tags, emit_categories, emit_archive) appear in the links.

CLI

zensical-updates build    # generate the section into docs/<base>/
zensical-updates clean    # remove the generated output
zensical-updates --help

Development

git clone https://github.com/IvanAnishchuk/zensical-updates.git
cd zensical-updates
uv sync

uv run pytest                       # tests + coverage (includes the zensical build)
uv run ruff check src/ tests/
uv run ruff format --check src/ tests/
uv run mypy
uv run pre-commit run --all-files

License

CC0-1.0. This is an original implementation inspired by the concept of knu2xs/zensical-blog, written from this project's own analysis of how zensical behaves.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zensical_updates-0.1.5.tar.gz (29.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zensical_updates-0.1.5-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file zensical_updates-0.1.5.tar.gz.

File metadata

  • Download URL: zensical_updates-0.1.5.tar.gz
  • Upload date:
  • Size: 29.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for zensical_updates-0.1.5.tar.gz
Algorithm Hash digest
SHA256 3a083b944c44c35501bbf65a731716b8c49d64cacdc1cd838766c894fbfea448
MD5 bca9702fa137e779e0338714fddca2da
BLAKE2b-256 fd43afeea62ad6042b5d966fbc194cb1118b21dd04e720edc43749c4898233bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for zensical_updates-0.1.5.tar.gz:

Publisher: release.yml on IvanAnishchuk/zensical-updates

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zensical_updates-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for zensical_updates-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2c0910d5f2e12a857042fbc7c2a4cd22c597b9ca64cc1984064f02646b7f522d
MD5 ac289e0b4869d0eef9cc3f3fbb16f37e
BLAKE2b-256 ad84921de746d53775a1bdeac4c8e2efefccc11c0228a5987e05b2323ca1e688

See more details on using hashes here.

Provenance

The following attestation bundles were made for zensical_updates-0.1.5-py3-none-any.whl:

Publisher: release.yml on IvanAnishchuk/zensical-updates

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page