Skip to main content

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)

Sitemap

With site_url set, the build writes a sitemap to docs/<base>/sitemap.xml, served at <site_url>/<base>/sitemap.xml (for the default section, /updates/sitemap.xml). It lists every page the build generates: the section index, each post, and whichever taxonomy and archive pages you enable. zensical writes its own sitemap for the pages in nav only, so the generated section is otherwise missing from any sitemap, and a crawler never reaches the posts. The locations are fully-qualified, so the sitemap needs site_url for the reason the feed does, and the build prints a warning and skips it without one.

[project.extra.zensical_updates]
emit_sitemap = true   # generate sitemap.xml (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.

Metadata

Release files for zensical-updates 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zensical-updates 0.1.8
File Size Uploaded Provenance Actions
zensical_updates-0.1.8.tar.gz 34.7 kB With provenance Details for zensical_updates-0.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zensical-updates 0.1.8
File Interpreter ABI Platform Actions
zensical_updates-0.1.8-py3-none-any.whl Python 3 none any Details for zensical_updates-0.1.8-py3-none-any.whl

Total release size: 56.3 kB

Release files / zensical_updates-0.1.8.tar.gz

Download URL zensical_updates-0.1.8.tar.gz
Size 34.7 kB
Tags Source
SHA-256 checksum
How to use checksums
82f0d98b318f88d2fe557526118a85d3d7a531f559024c24d09aab20fa9d839d
BLAKE2b-256 checksum
How to use checksums
9ad5838a1b4fcefa455be96b9399d841a7c5498d5b3d26173aaf884de6029482
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Release files / zensical_updates-0.1.8-py3-none-any.whl

Download URL zensical_updates-0.1.8-py3-none-any.whl
Size 21.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dafba42fca37b4454d2c893966647a6983951130428d72ac6b57ef8fd58acfa0
BLAKE2b-256 checksum
How to use checksums
c994f7468d0d93ba7c74b7e8ee389b47cf3ad44b38ca9ab6546655b1798024a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Security for zensical-updates 0.1.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for zensical_updates-0.1.8.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page