Skip to content

Fix blank thumbnail for Animal Island theme#498

Open
YanyingWei1997 wants to merge 2 commits into
typora:gh-pagesfrom
YanyingWei1997:fix-animal-island-thumbnail
Open

Fix blank thumbnail for Animal Island theme#498
YanyingWei1997 wants to merge 2 commits into
typora:gh-pagesfrom
YanyingWei1997:fix-animal-island-thumbnail

Conversation

@YanyingWei1997

Copy link
Copy Markdown
Contributor

Problem

The Animal Island theme (added in #492) shows a blank thumbnail in the gallery.

Root cause

index.html loads gallery thumbnails from:

<img src="/media/thumbnails/{{ post.thumbnail }}">

But in #492 the thumbnail was committed to /thumbnails/animal-island-thumbnail.png (missing the media/ prefix), so the gallery requests /media/thumbnails/animal-island-thumbnail.png which 404s → blank card.

Fix

  • Add media/thumbnails/animal-island-thumbnail.png (same 250×200 image)
  • Remove the misplaced thumbnails/animal-island-thumbnail.png

No change to the post front matter — thumbnail: animal-island-thumbnail.png was already correct; only the file location was wrong.

Gallery index.html loads thumbnails from /media/thumbnails/<thumbnail>,
but the thumbnail was committed to /thumbnails/ in PR typora#492, so the
gallery card rendered blank. Move it to the correct directory.
Superseded by /media/thumbnails/animal-island-thumbnail.png.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant