mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-12-23 14:01:52 +00:00
27 lines
725 B
HTML
27 lines
725 B
HTML
{{ define "main"}}
|
|
<h1>{{ .Title }}</h1>
|
|
{{ partial "header.html" . }}
|
|
{{ if not .Date.IsZero }}
|
|
<!-- date -->
|
|
{{ $singlePageDateFormat := .Site.Params.singlePageDateFormat | default "January 2, 2006"}}
|
|
<p class="date">{{ .Date.Format $singlePageDateFormat }}</p>
|
|
{{ end }}
|
|
<!-- tags -->
|
|
{{ if .Param "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>
|
|
{{ end }}
|
|
<!-- content -->
|
|
<div id="contentBody">
|
|
{{ .Content }}
|
|
</div>
|
|
{{ partial "footer.html" . }}
|
|
{{ end }}
|