Skip to content

Images are not displayed when served from GitHub Pages but displayed when served locally #65

@jeffrey-chongsathien

Description

@jeffrey-chongsathien

When developing a { Jekyll, AsciiDoc, Just the Docs } GitHub Pages site, I was pulling my hair out trying to figure out why images weren't rendering when served from GitHub Pages.

Image

Everything looked fine when served locally (bundle exec jekyll serve).

It turns out it's because my source repository is configured with Git LFS - as naturally you would when working with any kind of image source files.

https://github.com/orgs/community/discussions/50337

The solution was to modify the publishing action:

Image

The template project should at least have this in the action as comments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions