Search code examples
jekyll

Jekyll default page


How can I change the default starting page? Currently, index.html is always the index of posts.

I like to show the content of my current /about page on index.html and like to have an /articles link to the index of posts instead.

Is copy pasting /about/index.html's content into /index.html the only solution?


Solution

  • This not really a Jekyll problem, it's more an Information Architecture one.

    Your page hierachy is like this :

    |-index.html
    |-articles.html
    |-...
    

    Just add the content you want in index.html or index.md, if you want to write it in markdown.

    Create an article.html or md page and just copy the actual content of index.html in it.

    Finally if you want to reach your articles page at /articles/, just add permalink: articles/ in the front matter. Otherwise, by default it will be reached at articles.html.