-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to create list page templates with this theme? #103
Comments
Update: list.html successfully renders content in _index.html, however, list templates seem to not function as per the Hugo documentation. |
I noticed that I will get the list if I have
in
|
You need to define main, not create a block. The block already exists in the baseof template. So in list.html you do:
|
Sorry I'm a noob but I don't get it. Starting from single.html I created a list.html layout adding the above code. |
I'm getting back to the question cause I can get it to work. |
Dev Info for myself: |
I want to create a page that lists all pages in each content directory (eg. all blog posts).
I create a list.html file in themes/hugo-fresh/layouts/_default
I include the markup code:
Unfortunately this generates a Hugo server error.
I notice the config.yaml file includes these lines:
Reference: https://gohugo.io/templates/lists/
The text was updated successfully, but these errors were encountered: