mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-09 19:00:34 -05:00
23 lines
648 B
HTML
23 lines
648 B
HTML
{{ define "main"}}
|
|
<h1>{{ .Title }}</h1>
|
|
{{ partial "header.html" . }}
|
|
<!-- date -->
|
|
{{ $singlePageDateFormat := .Site.Params.singlePageDateFormat | default "January 2, 2006"}}
|
|
<p class="date">{{ .Date.Format $singlePageDateFormat }}</p>
|
|
<!-- 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>
|
|
{{ partial "footer.html" . }}
|
|
{{ end }}
|