xianmin / hugo-theme-jane

A readable & concise theme for Hugo, color schemes to choose, easy to personalize. Working well since 2018.
https://xianmin.github.io/hugo-theme-jane/
MIT License
926 stars 287 forks source link

Create static frontpage with separate blog #236

Open willismonroe opened 5 years ago

willismonroe commented 5 years ago

I'm a little confused about how to make a simple static frontpage ('index.html') and then have a separate /blog/ link that shows all the posts.

Is that possible with this theme?

mandarvaze commented 4 years ago

I have a similar need. I created a folder structure like :

content/projects/project1.md and content/projects/project2.md and so on.

These appear as /projects/project1/ and /projects/project2/ etc. But I want a "front page" which lists these all.

I tried creating content/projects/index.md which works as front page, but then /projects/project1/ and /projects/project2/ become 404

I want to point to /projects/project1/ and /projects/project2/ from index.md, so I need both the index.html as well as /projects/project1/ and /projects/project2/ (But I seem to get only one, not both)

As a fall back, I am OK even if I get output like Archives (/post/), where the entries are listed in a paginated manner "Per year". (In this case, no index.md. Not ideal, but acceptable)

@xianmin Please suggest.