mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-05 00:15:59 -06:00
39 lines
834 B
HTML
39 lines
834 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>
|
|
{{ range .Pages }}
|
|
<li>
|
|
{{ if .Date }}
|
|
<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 }}
|