summaryrefslogtreecommitdiffhomepage
path: root/output
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2017-08-11 09:33:45 +0200
committerBjørn Erik Pedersen <[email protected]>2017-08-11 09:34:31 +0200
commit0019ce002449d671a20a69406da37b10977f9493 (patch)
tree0d334a4f9b9e75212a9453a0c951884699fd3aea /output
parent33ae10b6ade67cd9618970121d7de5fd2ce7d781 (diff)
downloadhugo-0019ce002449d671a20a69406da37b10977f9493.tar.gz
hugo-0019ce002449d671a20a69406da37b10977f9493.zip
output: Improve the base template identification
See https://discourse.gohugo.io/t/main-block-not-rendered-in-custom-archetypes-layout/7917/3
Diffstat (limited to 'output')
-rw-r--r--output/layout_base.go2
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 {