summaryrefslogtreecommitdiffstats
path: root/themes/Brine/layouts/_default/single.html
blob: a34f75c1a1925b30f12a3f0cc0026fab995dfd75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
{{ define "main" }}
	<article class="post">
		<header class="post-header">
			<h1 class ="post-title">{{ .Title }}</h1>
			<div class="post-meta">
				<div>Published: {{ .PublishDate.Format "Jan 2, 2006" }}</div>
				<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 -}}
			</div>
		</header>
		<div class="post-content">{{ .Content }}</div>
	</article>{{ end }}