summaryrefslogtreecommitdiffstats
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 6fffbae86..204f5acee 100644
--- a/hugolib/page_output.go
+++ b/hugolib/page_output.go
@@ -218,7 +218,7 @@ func newOutputFormat(p *Page, f output.Format) *OutputFormat {
func (p *PageOutput) AlternativeOutputFormats() (OutputFormats, error) {
var o OutputFormats
for _, of := range p.OutputFormats() {
- if of.f.NotAlternative || of.f == p.outputFormat {
+ if of.f.NotAlternative || of.f.Name == p.outputFormat.Name {
continue
}
o = append(o, of)