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 }}
|
2021-10-02 16:22:52 -05:00
|
|
|
|
2021-10-02 19:26:33 -05:00
|
|
|
{{ range .Paginator.Pages }}
|
2021-10-02 16:22:52 -05:00
|
|
|
<div class="post">
|
|
|
|
<h2 class="post-title">
|
|
|
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
|
|
|
</h2>
|
|
|
|
|
2021-10-02 17:32:36 -05:00
|
|
|
{{ if or .Date (.GetTerms "tags") }}
|
2021-10-02 16:22:52 -05:00
|
|
|
<div class="post-metadata">
|
|
|
|
{{ if .Date }}
|
2021-10-05 19:12:10 -05:00
|
|
|
|
|
|
|
{{ partial "icon.html" "calendar" }}
|
2021-10-02 16:22:52 -05:00
|
|
|
<time datetime="{{ .Date.Format "January 2, 2006" }}" pubdate>
|
|
|
|
{{ .Date.Format "January 2, 2006" }}
|
|
|
|
</time>
|
2021-10-05 19:12:10 -05:00
|
|
|
|
2021-10-02 16:22:52 -05:00
|
|
|
{{ if ne .Lastmod .Date }}
|
2021-10-02 16:35:24 -05:00
|
|
|
<time datetime="{{ .Lastmod.Format "2006-01-02" }}" pubdate>
|
|
|
|
(Modified {{ .Lastmod.Format "January 2, 2006" }})
|
2021-09-26 15:02:47 -05:00
|
|
|
</time>
|
|
|
|
{{ end }}
|
2021-10-05 19:12:10 -05:00
|
|
|
|
2021-09-26 15:02:47 -05:00
|
|
|
{{ end }}
|
2021-10-02 16:22:52 -05:00
|
|
|
|
|
|
|
<span class="tags">
|
|
|
|
{{ range (.GetTerms "tags") }}
|
2021-10-05 19:12:10 -05:00
|
|
|
<span class="tag">
|
|
|
|
{{ partial "icon.html" "tag" }}
|
|
|
|
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
|
|
|
|
</span>
|
2021-10-02 16:22:52 -05:00
|
|
|
{{ end }}
|
|
|
|
</span>
|
|
|
|
</div>
|
2021-10-02 17:32:36 -05:00
|
|
|
{{ end }}
|
2021-10-02 16:22:52 -05:00
|
|
|
|
|
|
|
<div class="post-description">
|
|
|
|
{{ if .Description }}
|
|
|
|
{{ .Description | markdownify }}
|
|
|
|
{{ else }}
|
|
|
|
{{ .Summary | markdownify }}
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="readmore">
|
|
|
|
<a href="{{ .Permalink }}">Read more →</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ else }}
|
|
|
|
<div>
|
|
|
|
No posts here!
|
|
|
|
</div>
|
2021-09-26 15:02:47 -05:00
|
|
|
{{ end }}
|
2021-10-02 16:22:52 -05:00
|
|
|
|
2021-10-02 19:26:33 -05:00
|
|
|
<div class="pagination">
|
|
|
|
{{ template "_internal/pagination.html" . }}
|
|
|
|
</div>
|
|
|
|
|
2021-09-28 18:15:16 -05:00
|
|
|
{{ end }}
|