output: Improve the base template identification

See https://discourse.gohugo.io/t/main-block-not-rendered-in-custom-archetypes-layout/7917/3
This commit is contained in:
Bjørn Erik Pedersen 2017-08-11 09:33:45 +02:00
parent 33ae10b6ad
commit 0019ce0024

View file

@ -25,7 +25,7 @@ const baseFileBase = "baseof"
var (
aceTemplateInnerMarkers = [][]byte{[]byte("= content")}
goTemplateInnerMarkers = [][]byte{[]byte("{{define"), []byte("{{ define")}
goTemplateInnerMarkers = [][]byte{[]byte("{{define"), []byte("{{ define"), []byte("{{- define"), []byte("{{-define")}
)
type TemplateNames struct {