bobatheme/layouts/_default/list.html

42 lines
914 B
HTML

{{ define "main" }}
{{ if .Data.Singular }}
<h3>Filtering for "{{ .Title }}"</h3>
<small>
<a href="{{ . | relURL }}">Remove filter</a>
</small>
{{ else }}
<h1>{{ .Title | markdownify }}</h1>
{{ end }}
<ul>
{{ $showDate := .Params.showdate }}
{{ range .Pages }}
<li>
{{ if $showDate }}
<time datetime="{{ .Date.Format "2006-01-02" }}" pubdate>
{{ .Date.Format "2006-01-02" }}
</time>
{{ end }}
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</li>
{{ else }}
<li>
No posts here!
</li>
{{ end }}
</ul>
{{ if .Data.Singular }}
{{ else }}
{{ if .Params.showtags }}
<small>
Site-wide tags:
<span class="tags">
<br />
{{ range .Site.Taxonomies.tags }}
<a href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a>&nbsp;
{{ end }}
</span>
</small>
{{ end }}
{{ end }}
{{ end }}