Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exampleSite/content/blog/creating-a-new-theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ Knowing that hugo is using the slug to generate the file name, the simplest solu
$ vi config.toml
[permalinks]
page = "/:title/"
about = "/:filename/"
about = "/:contentbasename/"
```

Generate the web site and verify that this didn't work. Hugo lets "slug" or "URL" override the permalinks setting in the configuration file. Go ahead and comment out the slug in content/about.md, then generate the web site to get it to be created in the right place.
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ pluralizelisttitles = false
"""

[permalinks]
blog = "/blog/:year/:month/:day/:filename/"
blog = "/blog/:year/:month/:day/:contentbasename/"

# Enable or disable top bar with social icons
[params.topbar]
Expand Down