diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-08-11 09:33:45 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-08-11 09:34:31 +0200 |
commit | 0019ce002449d671a20a69406da37b10977f9493 (patch) | |
tree | 0d334a4f9b9e75212a9453a0c951884699fd3aea | |
parent | 33ae10b6ade67cd9618970121d7de5fd2ce7d781 (diff) |
output: Improve the base template identification
See https://discourse.gohugo.io/t/main-block-not-rendered-in-custom-archetypes-layout/7917/3
-rw-r--r-- | output/layout_base.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/output/layout_base.go b/output/layout_base.go index fc34b08be..dc653ad0f 100644 --- a/output/layout_base.go +++ b/output/layout_base.go @@ -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 { |