Skip to content

fix: add missing /content/ segment to category.html thumbnail paths#54

Merged
tallnato merged 2 commits intomainfrom
paperclip/backelino/NAT-130
Mar 27, 2026
Merged

fix: add missing /content/ segment to category.html thumbnail paths#54
tallnato merged 2 commits intomainfrom
paperclip/backelino/NAT-130

Conversation

@tallnato
Copy link
Copy Markdown
Member

Summary

  • Fixed broken image previews on category pages by adding the missing /content/ segment to thumbnail URL construction in _layouts/category.html
  • The template was generating paths like /Volts/wraps/sample-wrap/thumb.png instead of /Volts/content/wraps/sample-wrap/thumb.png
  • Path construction now matches _layouts/item.html and aligns with _plugins/copy_collection_files.rb output directory

Test plan

  • Visit any category page and verify thumbnail images render correctly
  • Inspect thumbnail src attributes to confirm they include /content/ in the path
  • Run bundle exec jekyll build and verify no errors

🤖 Generated with Claude Code

tallnato and others added 2 commits March 27, 2026 00:35
Jekyll collections in _-prefixed directories generate HTML pages for
documents but do not automatically output static files (audio, images,
etc.) alongside them. This adds a Jekyll generator plugin that copies
non-document files from collection directories into _site/ at the
correct paths, making audio and download files accessible.

Also adds the type attribute to <source> elements for better browser
compatibility with audio playback.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
The category template was building thumbnail URLs without the /content/
prefix, causing broken image previews. This aligns the path construction
with item.html and the copy_collection_files plugin output directory.

Closes NAT-130

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added the site Changes to site layouts, includes, and config label Mar 27, 2026
@tallnato tallnato merged commit 3702dc0 into main Mar 27, 2026
3 checks passed
@tallnato tallnato deleted the paperclip/backelino/NAT-130 branch March 27, 2026 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

site Changes to site layouts, includes, and config

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant