{{ if is "homepage" }} {{ end }} {{ if is "homepage" }} {{ else if is "category" }} {{ else }} {{ end }} {{ if is "homepage" }} {{ .BlogTitle }} {{ else if is "category" }} {{ index .CategoryMap .Category }} {{ else }} {{ .Title }} - {{ .BlogTitle }} {{ 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 ne .Prelude "" }}
{{ .Prelude }}
{{ end }}
{{ end }}