-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom content for Github Pages index.html #406
Comments
It should be possible to integrate other material into an index page (or even move the index page to a different page and use different content for the index), but that would require some work. I'm happy to leave this issue open in case someone wants to do that work (I don't have spare capacity right now, even though this would be relatively straightforward). |
Can you point me to where this code lives? |
There is code in the README generator (https://github.com/martinthomson/i-d-template/blob/main/setup-readme.sh), but the main code is here: Lines 78 to 86 in eb41d49
|
Thanks for that! What I am wondering is why are you even bothering to create a separate I don't speak bash well, otherwise I would have PRed it myself. |
The README contains only the |
Well, you can copy the readme and generate this extra stuff if you want. It will still be simpler to write the markdown than generating the HTML (using shell script, impressive!). That way you can have a nice landing page and all this stuff. And you could also then perhaps configure Jekyll templates. What I am really after is to have a landing page where I can introduce what I am doing (for the price of free :P). |
The HTTP working group uses markdown for this index (it's a supported option). They manage the landing page problem by having a separate github.io/foo page for that. |
I looked into HTTPWG repos. They are using index markdown for the HTTP extensions page, with the rest of everything being served from <httpwg.github.io> repo as you describe. But it is unclear to me how to configure i-d-template so that @martinthomson Can you please point me to the configuration that enables the |
https://github.com/httpwg/http-extensions/blob/main/Makefile#L3 sets INDEX_FORMAT. I don't know how that is being styled, but I think that it requires that you understand how to use Jekyll (and I don't). |
Thanks! I'll play around tomorrow to see how far I can get. I don't have much knowledge about Jekyll but I believe the default is to style using the Primer template https://github.com/pages-themes/primer. You can provide your (The mystery for me is how HTML extensions inherits HTMLWG template with nothing defined in that repo; then I don't know much of how Github Pages work). |
This is more of an enquiry rather than an issue:
Is it possible to override the index.html page generated in gh-pages branch? I would rather it display the Readme (or something else) and augment that with the generated links.
The text was updated successfully, but these errors were encountered: