mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-24 09:06:30 -05:00
26 lines
683 B
HTML
26 lines
683 B
HTML
{{ define "main"}}
|
|
{{ partial "header.html" . }}
|
|
<main>
|
|
{{ if not .Date.IsZero }}
|
|
<!-- date -->
|
|
{{ $singlePageDateFormat := .Site.Params.singlePageDateFormat | default "January 2, 2006"}}
|
|
<p class="date">{{ .Date.Format $singlePageDateFormat }}</p>
|
|
{{ end }}
|
|
<!-- tags -->
|
|
<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>
|
|
<!-- content -->
|
|
<div id="contentBody">
|
|
{{ .Content }}
|
|
</div>
|
|
</main>
|
|
{{ partial "footer.html" . }}
|
|
{{ end }}
|