Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-04-20 12:50:57 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-04-20 16:01:20 +0300
commitc7dd66bfe2e32430f9b1a3126c67014e40d8405e (patch)
tree6de0c2d35426f390c8c40e54c47a5d5b7a565362 /resources/page
parent7aeeb60d7ee71690461df92ff41cb8b2f7f5aa61 (diff)
Fix links for non-HTML output formats
They were not correct for regular pages. Fixes #5877
Diffstat (limited to 'resources/page')
-rw-r--r--resources/page/page_paths.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/page/page_paths.go b/resources/page/page_paths.go
index 89616d421..fd231e72b 100644
--- a/resources/page/page_paths.go
+++ b/resources/page/page_paths.go
@@ -235,7 +235,7 @@ func CreateTargetPaths(d TargetPathDescriptor) (tp TargetPaths) {
pagePath = pjoin(pagePath, d.Type.BaseName+d.Type.MediaType.FullSuffix())
}
- if isUgly && !isHtmlIndex(pagePath) {
+ if !isHtmlIndex(pagePath) {
link = pagePath
}