Apologies in advance; starting to replace my manually built static sites with Hugo so still on a learning curve.
The Blog feature allows me to create a list of posts that are shown in preview with banners & abstract (with tags & categories) from site.com/blog/. Thereby I don’t have to constantly add links pointing to new blog posts. Hugo does this automatically.
I would like to replicate this feature for a set of Help pages in addition to the Blog pages. How can I replicate the Blog functionality to a set of Help pages? For example with config.toml set for blog = "/blog/:year/:month/:filename/"
Thanks for the links to the right part of the docs.
I’ve added the help permalinks to config.toml:
[Permalinks]
blog = "/blog/:year/:month/:filename/"
help = "/help/:filename/"
I’ve added Help into the top menu in config.toml:
[[menu.main]]
name = "Help"
url = "/help/"
weight = 3
I’ve regenerated my help page content:
hugo new help/help-page1.md
hugo new help/help-page2.md
hugo new help/help-page3.md
Running the local server hugo server -D --verbose shows my new “Help” link but browsing to /help/ displays the theme, with page titled “HELPS” with no content.
Generating the static site with hugo --verbose updates pages index.html, 404.html, index.xml. sitemap.xml with the same empty content as above. The help pages appear in sitemap.xml.
I’m still sort of stuck working out if I’m using permalinks correctly. I’m expecting /help/ to work identically to /blog/. Any ideas what I’m missing?
That is a backhanded and disgraceful response, and I’ll tell you why: everyone is volunteering here, including the folks updating the docs. We are in this together, rather than a drive-thru window for technical advice. In the future, please be more considerate and less dismissive.
Also, you issue is with the range in /themes/hugo-universal-theme/layouts/_default/list.html: