I commonly use Git LFS to store images in a repo. Pages doesn't quite handle this setup correctly. Images fail to load in the UI, because the resulting URL for the src points to the LFS file.
It looks like Pages tries to display images use the following URL structure:
https://raw.githubusercontent.com/{ USERNAME }/{ REPO_NAME }/{ BRANCH_NAME }/{ FILE_PATH }?token=
The raw source on an image in my repo uses the following URL structure:
https://media.githubusercontent.com/media/{ USERNAME }/{ REPO_NAME }/{ BRANCH_NAME }/{ FILE_PATH }?token=
Is it possible for Pages to detect when LFS is in use and adjust image sources accordingly?
I commonly use Git LFS to store images in a repo. Pages doesn't quite handle this setup correctly. Images fail to load in the UI, because the resulting URL for the src points to the LFS file.
It looks like Pages tries to display images use the following URL structure:
https://raw.githubusercontent.com/{ USERNAME }/{ REPO_NAME }/{ BRANCH_NAME }/{ FILE_PATH }?token=The raw source on an image in my repo uses the following URL structure:
https://media.githubusercontent.com/media/{ USERNAME }/{ REPO_NAME }/{ BRANCH_NAME }/{ FILE_PATH }?token=Is it possible for Pages to detect when LFS is in use and adjust image sources accordingly?