2018-09-23 07:11:35 -04:00
|
|
|
{{ define "main"}}
|
2019-03-23 03:18:03 -04:00
|
|
|
<h1>{{ .Title }}</h1>
|
|
|
|
{{ partial "header.html" . }}
|
2019-09-15 13:35:55 -04:00
|
|
|
{{ if not .Date.IsZero }}
|
2019-03-23 03:18:03 -04:00
|
|
|
<!-- date -->
|
2019-05-18 09:27:23 -04:00
|
|
|
{{ $singlePageDateFormat := .Site.Params.singlePageDateFormat | default "January 2, 2006"}}
|
|
|
|
<p class="date">{{ .Date.Format $singlePageDateFormat }}</p>
|
2019-09-15 13:35:55 -04:00
|
|
|
{{ end }}
|
2020-01-15 21:47:11 -05:00
|
|
|
<!-- tags -->
|
2020-03-21 22:42:36 -04:00
|
|
|
{{ if .Param "tags" }}
|
2020-01-15 21:47:11 -05:00
|
|
|
<div id="tags">
|
|
|
|
<ul>
|
|
|
|
{{ range .Param "tags" }}
|
|
|
|
{{ $name := . }}
|
|
|
|
{{ with $.Site.GetPage (printf "/tags/%s" ($name | urlize)) }}
|
|
|
|
<li><a href="{{ .Permalink }}">{{ $name }}</a></li>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2020-03-21 22:42:36 -04:00
|
|
|
{{ end }}
|
|
|
|
<h1>{{ .Title }}</h1>
|
2019-03-23 03:18:03 -04:00
|
|
|
<!-- content -->
|
2019-03-23 12:59:56 -04:00
|
|
|
<div id="contentBody">
|
2019-03-23 03:18:03 -04:00
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
|
|
|
{{ partial "footer.html" . }}
|
2018-09-23 07:11:35 -04:00
|
|
|
{{ end }}
|