summaryrefslogtreecommitdiffstats
path: root/themes/Brine/layouts/_default/single.html
blob: eb1396733c726be56b6b3298c3279104bb79a4a0 (plain) (blame)
1
2
3
4
5
{{ define "main" }}	<h1>{{ .Title }}</h1>{{ if .PublishDate }}
	<div>Published: {{ .PublishDate.Format "Jan 2, 2006" }}{{ if ne .Lastmod .PublishDate }}, last updated: {{ .Lastmod.Format "Jan 2, 2006" }}{{ end }}</div>{{ end }}
	<div>Reading time: {{ .ReadingTime }} min</div>{{- with .Params.tags -}}
	<div>Tags: {{ range . -}}{{- with $.Site.GetPage (printf "/%s/%s" "tags" . ) -}}<a href="{{ .Permalink }}">{{ .Title }}</a>&nbsp;{{- end -}}{{- end -}}</div>{{- end -}}
	{{ .Content }}{{ end }}