mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 12:13:19 -06:00
40 lines
878 B
HTML
40 lines
878 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 }}
|
|
<small>
|
|
Site-wide tags:
|
|
<span class="tags">
|
|
<br />
|
|
{{ range .Site.Taxonomies.tags }}
|
|
<a href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a>
|
|
{{ end }}
|
|
</span>
|
|
</small>
|
|
{{ end }}
|
|
{{ end }}
|