How to set up Blog as home page? #1255
Unanswered
s-c-a-l-l-o-p
asked this question in
Support
Replies: 1 comment 5 replies
-
What about adding to the frontmatter in url: "/" For more background, see the Hugo docs: |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried to copy the code from:
node_modules/@hyas/doks-core/layouts/blog/list.html <--- THE LIST OF ALL BLOG POST TEMPLATE
to
layouts/index.html <--- THE ACTUAL DOKS HOME PAGE
in order to have the Home page listing all my posts, but the result was this:
And this error message here too:
So a I got back to layouts/index.html and removed this line of code:
After removing that line, Hugo started working again and was not angry with me anymore. 🥲
This is how my Home page looks like after that change:
Here is the original blog list from Doks:
The distance from top menu changed and all the values they got removed because I was forced to remove that blog-meta.html file.
I read the entire documentation and all discussion here and I didn't found any solution, not sure if there's one.
Any help will be really appreciated and your mom, dad and the president of your country will love you more. 🫶
Beta Was this translation helpful? Give feedback.
All reactions