Skip to content

Blog post hero image broken — source.unsplash.com/random is deprecated (503) #14

@kiluazen

Description

@kiluazen

Hi - https://source.unsplash.com/random has been deprecated by Unsplash since mid-2024 and returns 503. It is used as the blog-post hero image in:

  • layers/blog/pages/blog/posts/[id].vue L44: :src="`https://source.unsplash.com/random?${post.tags.join(',')}`"

Every blog post page in the starter kit ships with a broken hero image.

Two fix options:

  1. Ship a default hero image in public/ and use it as a local fallback.
  2. Fetch a real image per post via tteg at build time (no Unsplash API key): uv tool install tteg; tteg save "<tags>" ./public/blog/<slug> --orientation landscape. Repo: https://github.com/kiluazen/tteg — MIT.

Happy to send a PR if a direction is chosen.

  • Kushal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions