mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Patrick Kollitsch
yesterday ae0c6ae00a249f9c3cc819edbfb899fe309d406e
refs
author Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Sunday, June 7, 2026 02:55 +0200
committer Patrick Kollitsch <davidsneighbourdev+gh@gmail.com>
Sunday, June 7, 2026 02:55 +0200
commitae0c6ae00a249f9c3cc819edbfb899fe309d406e
tree 70c657ca9f646d151df88730afa2d2f77a0a0eb5 tree | zip | gz
parent 7abd905913a476061ff6880f645c2ce2e1092278 view | diff
feat: add since shortcode for release badges

Migrate the `since` shortcode from the documentation site into the theme
so every Ananke site can use it. It renders a small badge linking to the
release a feature was introduced in.

The version is resolved from the first positional argument, a named
`version` argument, or the page's `since` front matter. The release link
is built from a configurable printf format string
(`params.ananke.shortcodes.since.url`) and the label uses a new
translatable `since` i18n string.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2 files modified
1 files added
33 ■■■■■ changed files
config/_default/params.toml 5 ●●●●● diff | view | raw | blame | history
i18n/en.toml 3 ●●●●● diff | view | raw | blame | history
layouts/_shortcodes/since.html 25 ●●●●● diff | view | raw | blame | history