bobatheme/layouts/_default/list.html

39 lines
834 B
HTML
Raw Normal View History

2021-09-26 15:02:47 -05:00
{{ define "main" }}
{{ if .Data.Singular }}
<h3>Filtering for "{{ .Title }}"</h3>
<small>
<a href="{{ . | relURL }}">Remove filter</a>
</small>
{{ else }}
2021-09-26 19:21:48 -05:00
<h1>{{ .Title | markdownify }}</h1>
2021-09-26 15:02:47 -05:00
{{ end }}
<ul>
{{ range .Pages }}
<li>
{{ if .Date }}
<time datetime="{{ .Date.Format "2006-01-02" }}" pubdate>
{{ .Date.Format "2006-01-02" }}
</time>
{{ end }}
2021-09-26 19:21:48 -05:00
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
2021-09-26 15:02:47 -05:00
</li>
{{ else }}
<li>
No posts here!
</li>
{{ end }}
</ul>
{{ if .Data.Singular }}
{{ else }}
<small>
Site-wide tags:
<span class="tags">
<br />
2021-09-26 15:02:47 -05:00
{{ range .Site.Taxonomies.tags }}
<a href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a>&nbsp;
{{ end }}
</span>
2021-09-26 15:02:47 -05:00
</small>
{{ end }}
{{ end }}