diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-17 16:02:40 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-17 16:02:40 +0200 |
| commit | 0280cbf618db38255e878fc4b1bd474223782696 (patch) | |
| tree | 517cb92edc3e81dad23b2c4e0c4f28ee2f96fa55 /docs | |
| parent | e2737855a3d3544e7a44ba8384be1e206e96c40f (diff) | |
| download | danixxyz-0280cbf618db38255e878fc4b1bd474223782696.tar.gz danixxyz-0280cbf618db38255e878fc4b1bd474223782696.zip | |
feat: implement Related Articles sidebar widget
Replaces stub implementation with full related content functionality:
- Uses Hugo's .Site.RegularPages.Related API for smart tagging
- Caps at 5 related articles to keep sidebar compact
- Shows 2-line compact card per entry (title + date, excerpt snippet)
- Left border colored by article type (var(--type-<type>))
- Includes empty state message when no related articles found
- Multilingual support via existing i18n keys
- Theme-aware styling via CSS custom properties
The widget shows:
- Line 1: Title (linked) + · Jan 2006 date inline
- Line 2: First ~10 words of excerpt, small font, muted
Previously was a stub with empty placeholder comment.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
