]> danix's work - danix.xyz-2.git/commit
feat: implement Related Articles sidebar widget
authorDanilo M. <redacted>
Fri, 17 Apr 2026 14:02:40 +0000 (16:02 +0200)
committerDanilo M. <redacted>
Fri, 17 Apr 2026 14:02:40 +0000 (16:02 +0200)
commit0280cbf618db38255e878fc4b1bd474223782696
tree517cb92edc3e81dad23b2c4e0c4f28ee2f96fa55
parente2737855a3d3544e7a44ba8384be1e206e96c40f
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 <redacted>
themes/danix-xyz-hacker/layouts/partials/sidebar.html