]> danix's work - danix.xyz-2.git/commit
Resolve page bundle video paths using Resources API
authorDanilo M. <redacted>
Wed, 15 Apr 2026 20:55:05 +0000 (22:55 +0200)
committerDanilo M. <redacted>
Wed, 15 Apr 2026 20:55:05 +0000 (22:55 +0200)
commitdca88f8faf82b6fbc925afc344a07953eb2c8ca0
tree051f967bc4ba17c36fb9767c2031b5035d557635
parentb14e1db1b6bd40b401387e90af4bdd2acde41ca7
Resolve page bundle video paths using Resources API

- Use .Page.Resources.GetMatch to resolve video files in page bundles
- For videos in the same directory as index.md, use src="filename.webm"
- Template automatically resolves to correct permalink (/articles/slug/filename.webm)
- Falls back to literal path if resource not found (for external URLs)

Co-Authored-By: Claude Haiku 4.5 <redacted>
themes/danix-xyz-hacker/layouts/shortcodes/video.html [new file with mode: 0644]