If your repo is public, you can do this in the browser as well with a single line of jQuery[0] without any authentication. On my blog, the page itself[1] is just a placeholder for the repo URL, and the layout[2] does the rest. Obviously, this isn't static so all the usual caveats apply (SEO/perf/accessibility).
Re:Readme in Static Site (RISS)
by vhodges on Monday November 22, 2021 @10:39AM
(#29307528)
Also for a public repo sticherd[0] (Disclaimer: I am the author) can pull the content from github and inject it onto the page server side. Also not static, but has caching and no need for JS.
Soupault or even Hugo can pull remote content as well.
[0]: https://github.com/captn3m0/captn3m0.github.com/blob/master/...
[1]: https://github.com/captn3m0/captn3m0.github.com/blob/master/...
[2]: https://github.com/captn3m0/captn3m0.github.com/blob/master/...
https://docs.github.com/en/rest/overview/media-types
Soupault or even Hugo can pull remote content as well.
[1] https://en.wikipedia.org/wiki/Conditional_comment