mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 22:21:07 +03:00
parent
a2f666b586
commit
e4ad0c5271
2 changed files with 12 additions and 3 deletions
|
@ -254,7 +254,7 @@ func CreateTargetPaths(d TargetPathDescriptor) (tp TargetPaths) {
|
|||
|
||||
// if page URL is explicitly set in frontmatter,
|
||||
// preserve its value without sanitization
|
||||
if d.Kind != kinds.KindPage || d.URL == "" {
|
||||
if d.URL == "" {
|
||||
// Note: MakePathSanitized will lower case the path if
|
||||
// disablePathToLower isn't set.
|
||||
pb.Sanitize()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue