lgaida / mediumish-gohugo-theme

A mediumish gohugo theme, ported from jekyll
MIT License
131 stars 99 forks source link

How can I configure “/blogs” to be the home page? #12

Closed ksilz closed 5 years ago

ksilz commented 5 years ago

Hi,

I want the page with the blogs to show up first when users hit the page. So “/blogs” as the home page instead of the current one. How do I configure this in this theme?

Regards, Karsten Silz

lgaida commented 5 years ago

Hi Karsten,

see #4 and #3 for this. Especially this comment.

ksilz commented 5 years ago

Yep, that worked - copying the theme's default.html to be the layout's index.html.

naggie commented 4 years ago

Thanks @lgaida that was helpful.

For anyone else that wants to do this, the solution given lists pages in the root of content/ rather than (say) content/blog/. I was able to get hugo to list only the articles in content/blog/ by using a custom query in the overridden index.html, here: https://github.com/naggie/blog/blob/master/layouts/index.html#L15 . Note that you can still use the paginator if you like but I've chosen to remove it.