blog/layouts/_default/single.html

25 lines
777 B
HTML

{{ define "title" }}
{{ .Title }} – {{ .Site.Title }}
{{ end }}
{{ define "main" }}
<article>
<h1 class="display-3 text-center">{{ .Title }}</h1>
<p class="text-center"><time datetime="{{ .Date }}">{{ .Date.Format "2006-01-02" }}</time>
{{ if .Params.tags }}
|
{{range .Params.tags}}
<a class="btn btn-primary" href="/tags/{{ . | urlize }}" role="button">{{ . }}</a>
{{end}}
{{end}}
{{ if .Params.categories }}
|
{{range .Params.categories}}
<a class="btn btn-secondary" href="/categories/{{ . | urlize }}" role="button">{{ . }}</a>
{{end}}
{{end}}
</p>
{{ .Content }}
</article>
{{ end }}