maplibre / maplibre/maplibre.github.io
Social media image preview
Nobody has claimed this yet.
- Dominant language
- MDX
- Stars
- 23
- Forks
- 47
- Avg merge
- 1h 12m
- Merged PRs (30d)
- 41
Description
When posting links to news articles on social media, the platforms often show a post preview image. But for us this is always the same image. Would be cool if we could have a different image for each article. In the past I sometimes deleted the default image but linkedin basically does not show posts without an image... So for now I past the image manually but would be cool if we could set dynamically what goes into the header. The relevant section is probably this one:
https://github.com/maplibre/maplibre.github.io/blob/ece62083ff7cea8ebef10b0b8108c9d0fde683be/layouts/partials/head.html#L10-L24
@louwers @maxammann do you know how we could do this?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in layouts/partials/head.html at lines 10–24 and inspect how the current social preview image is set. Determine how article-specific images can be supplied for social metadata while retaining a fallback image, then verify generated article pages expose the intended preview image.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100