28 lines
725 B
HTML
28 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 }}
|