summaryrefslogtreecommitdiffhomepage
path: root/hugolib/page__output.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/page__output.go')
-rw-r--r--hugolib/page__output.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/page__output.go b/hugolib/page__output.go
index 183bf010d..7d5b78aae 100644
--- a/hugolib/page__output.go
+++ b/hugolib/page__output.go
@@ -32,7 +32,7 @@ func newPageOutput(
ft, found := pp.targetPaths[f.Name]
if !found {
// Link to the main output format
- ft = pp.targetPaths[pp.OutputFormats()[0].Format.Name]
+ ft = pp.targetPaths[pp.firstOutputFormat.Format.Name]
}
targetPathsProvider = ft
linksProvider = ft