1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
{{- define "title" -}} {{.Title}} {{- end -}} {{- define "main" -}} <div class='container'> <div class='section is-small'> <h1 class='title'>{{.Title}}</h1> <h2 class='subtitle'>{{.Date.Format "January 2, 2006" }}</h2> <div class='content'> {{- .Content -}} </div><!-- content --> </div><!-- section --> </div><!-- container --> {{- end -}}