mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-17 13:25:57 -06:00
42 lines
914 B
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>
|
|
{{ end }}
|
|
</span>
|
|
</small>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|