blog/layouts/_default/single.html

25 lines
781 B
HTML
Raw Permalink Normal View History

2023-05-31 13:35:32 -04:00
{{ define "title" }}
2023-07-15 20:10:41 -04:00
{{ .Title }} – {{ .Site.Title }}
2023-05-31 13:35:32 -04:00
{{ end }}
{{ define "main" }}
2023-07-15 20:10:41 -04:00
<article>
<h1 class="display-3 text-center">{{ .Title }}</h1>
2023-07-24 23:54:51 -04:00
<p class="text-center"><time datetime="{{ .Date }}">{{ .Date.Format "2006-01-02" }}</time>
{{ if .Params.tags }}
2023-08-04 15:33:14 -04:00
2023-07-24 23:54:51 -04:00
{{range .Params.tags}}
<a class="btn btn-primary" href="/tags/{{ . | urlize }}" role="button">{{ . }}</a>
{{end}}
{{end}}
{{ if .Params.categories }}
2023-08-04 15:33:14 -04:00
2023-07-24 23:54:51 -04:00
{{range .Params.categories}}
<a class="btn btn-secondary" href="/categories/{{ . | urlize }}" role="button">{{ . }}</a>
{{end}}
{{end}}
</p>
2023-07-15 20:10:41 -04:00
{{ .Content }}
</article>
2023-05-31 13:35:32 -04:00
{{ end }}