{{ if is "homepage" -}} {{- end }} {{ if is "homepage" -}} {{- else if is "category" -}} {{- else -}} {{- end }} {{ if is "homepage" -}} {{ .SiteTitle }} {{- else if is "category" -}} {{ index .CategoryMap .Category }} {{- else -}} {{ .Title }} - {{ .SiteTitle }} {{- end }} {{ $docsetMode := eq (getEnv "ELVISH_DOCSET_MODE") "1" -}} {{ if not $docsetMode }} {{ end }} {{/* The reference to "content" is a free one and has to be fixed elsewhere. The *-content templates defined below are intended to be used for this. For instance, by adding the following code, this whole template file will function as the template for articles: {{ define "content" }} {{ template "article-content" . }} {{ end }} This snippet can be generated by contentIs("article"). */}} {{ template "content" . }} {{ define "article-content" }}
{{ if not .IsHomepage }}
{{ .Timestamp }}

{{ .Title }}

{{ end }}
{{ .Content }}
{{ end }} {{ define "category-content" }} {{ $category := .Category }}
{{ if .Prelude }}
{{ .Prelude }}
{{ end }} {{ range $group := .Groups }} {{ if $group.Intro }}
{{ $group.Intro }}
{{ end }} {{ end }}
{{ end }}