ref: 0019ce002449d671a20a69406da37b10977f9493
parent: 33ae10b6ade67cd9618970121d7de5fd2ce7d781
author: Bjørn Erik Pedersen <[email protected]>
date: Fri Aug 11 05:33:45 EDT 2017
output: Improve the base template identification See https://discourse.gohugo.io/t/main-block-not-rendered-in-custom-archetypes-layout/7917/3
--- a/output/layout_base.go
+++ b/output/layout_base.go
@@ -25,7 +25,7 @@
var (
aceTemplateInnerMarkers = [][]byte{[]byte("= content")}
- goTemplateInnerMarkers = [][]byte{[]byte("{{define"), []byte("{{ define")}
+ goTemplateInnerMarkers = [][]byte{[]byte("{{define"), []byte("{{ define"), []byte("{{- define"), []byte("{{-define")}
)
type TemplateNames struct {