I tried to create list of all posts from my blog with custom URL.
For example, by default Hugo create list for all blog posts with URL /post/index.html
For this Hugo used layouts from
How I can create URL such
/articles.html with all posts from my blog, which contains in directory
I’m looking all similar pages, but not found look like this.
You need to set
uglyurls to true in your
This will then create your post page at
Then you need to define a custom url for this post page. So you create a
content/post/_index.md. By doing so you can now add some front matter to your post section page:
You post section page should now live at
I tryed your suggestion. But so sad, this post section will create page:
uglyurls wa setted to true in config file.
Full config file:
baseURL = “https://dazzling-raman-8ff0f7.netlify.com/”
languageCode = “en-us”
title = “Denis Evsyukov”
theme = “juev”
canonifyURLs = true
uglyurls = true
layoutReverse = true
post = “/:year/:month/:day/:slug/”
category = “categories”
tag = “tags”
date = [":filename", “:default”]
Have you tried setting
url: /articles.html in your post section front matter ?
Do you have a repo with your code?
Yes, Code for this I stored in https://github.com/Juev/hugo-netlify
When I set
url: /articles.html I get this file, but not html, but xml with rss content
Yes, I cannot explain why
urglyURLs config param does not have any impact on your project. It works well on several of mine
post directory to
articles, then change parameter in
articles = “/:year/:month/:day/:slug/”
tag = “tags”
articles = “articles”
articles.html page in root directory.
It’s not clear way for me.