Specifically: it turns out that Github Pages simply ignore LFS files, so they have to be linked directly as described at https://github.com/git-lfs/git-lfs/issues/1342#issuecomment-467321479 . The code in this PR checks for whether the page is being hosted at a domain with github in the name and if so then it rewrites URLs for media content to the direct raw file download links.
Resolves https://github.com/eldang/ballard-4culture/issues/7
Specifically: it turns out that Github Pages simply ignore LFS files, so they have to be linked directly as described at https://github.com/git-lfs/git-lfs/issues/1342#issuecomment-467321479 . The code in this PR checks for whether the page is being hosted at a domain with
github
in the name and if so then it rewrites URLs for media content to the direct raw file download links.