diff options
Diffstat (limited to 'output/layout.go')
-rw-r--r-- | output/layout.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/output/layout.go b/output/layout.go index 5ffc19130..206293842 100644 --- a/output/layout.go +++ b/output/layout.go @@ -17,6 +17,8 @@ import ( "fmt" "strings" "sync" + + "github.com/gohugoio/hugo/helpers" ) // These may be used as content sections with potential conflicts. Avoid that. @@ -95,6 +97,7 @@ func (l *LayoutHandler) For(d LayoutDescriptor, f Format) ([]string, error) { } layouts = prependTextPrefixIfNeeded(f, layouts...) + layouts = helpers.UniqueStrings(layouts) l.mu.Lock() l.cache[key] = layouts |