Skip to content

GitHub Pages: can I use a mix of html and md files? #22648

Answered by yanamal
yanamal asked this question in General
Discussion options

You must be logged in to vote

The problem turned out to be much simpler than I thought. Through experimentation, I found that jekyll seems to just exclude README.md specifically from the pages it turns into HTML.

So I ended up creating a separate .md file and just using the following line to include the contents of README.md in it:

{% include_relative README.md %}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant