{{ .Content }} {{/* For templating Go's "html/template" package is used. See https://golang.org/pkg/html/template/ and https://golang.org/pkg/text/template/ for more details on how templates work. Templates are read from this directory with template.ParseGlob [1] function, pattern is "*.html". Template is rendered with the Page object: type Page struct { Title string // page title, as: {{.Title}} Content template.HTML // page content, rendered as HTML Pages []pageMeta // non-empty only for index pages Categories []pageMeta // non-empty only for index pages } // pageMeta is an immediate child of the section. It either points to a // *.md file, or a subdirectory that contains at least one *.md file. type pageMeta struct { Title string // page title, as: {{.Title}} Dst string // destination file/directory name, as: } [1]: https://golang.org/pkg/text/template/#Template.ParseGlob */}} {{if .Content}}{{if or .Pages .Categories}}
{{end}}{{end}} {{if .Pages }}

Pages in this category

{{end}} {{if .Categories}}

Subcategories:

{{end}}