Search code examples
github-pages

How do I create more than a hello world with GitHub Pages?


The instructions at Git Hub Pages show me how to create a Hello World website that just says "Hello World"

The instructions also say that the website can be hosted directly from my Git Hub repository.

I have created a HelloWorld.md file

How do I get it to display on my website?

I note that if I delete index.html then GitHub generates a page based on readme.md


Solution

  • Try adding YAML front matter to your Markdown file. Your HelloWorld.md file should look something like this:

    ---
    layout: default
    ---
    
    Hello, world!
    

    After this, GitHub Pages should generate a page for your Markdown file.