47 lines
1 KiB
HTML
47 lines
1 KiB
HTML
|
{{ define "main" }}
|
||
|
<content>
|
||
|
{{ .Content }}
|
||
|
|
||
|
<br>
|
||
|
{{ if .Data.Singular }}
|
||
|
<h3 style="margin-bottom:0">Filtering for "{{ .Title }}"</h3>
|
||
|
<small>
|
||
|
<a href="{{ "blog" | relURL }}">Remove filter</a>
|
||
|
</small>
|
||
|
{{ end }}
|
||
|
{{ if ne .Params.toc false }}
|
||
|
<ul class="blog-posts">
|
||
|
{{ range .Pages }}
|
||
|
<li>
|
||
|
{{ with .Params.datetime }}
|
||
|
{{ if ne . false }}
|
||
|
<span>
|
||
|
<i>
|
||
|
<time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
|
||
|
{{ .Date.Format (default "02 Jan, 2006" .Site.Params.dateFormat) }}
|
||
|
</time>
|
||
|
</i>
|
||
|
</span>
|
||
|
{{ end }}
|
||
|
{{ end }}
|
||
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||
|
</li>
|
||
|
{{ else }}
|
||
|
<li>
|
||
|
No posts yet
|
||
|
</li>
|
||
|
{{ end }}
|
||
|
</ul>
|
||
|
{{ end }}
|
||
|
{{ if ne .Params.show_tags false }}
|
||
|
<small>
|
||
|
<div>
|
||
|
{{ range .Site.Taxonomies.tags }}
|
||
|
<a href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a>
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
</small>
|
||
|
{{ end }}
|
||
|
</content>
|
||
|
{{ end }}
|