2020-08-31 13:40:11 +00:00
|
|
|
{{ define "main" }}
|
|
|
|
<content>
|
|
|
|
{{ if .Data.Singular }}
|
|
|
|
<h3 style="margin-bottom:0">Filtering for "{{ .Title }}"</h3>
|
|
|
|
<small>
|
2023-03-15 12:01:49 +00:00
|
|
|
<a href="{{ "blog" | relURL }}">Remove filter</a>
|
2020-08-31 13:40:11 +00:00
|
|
|
</small>
|
|
|
|
{{ end }}
|
2024-03-09 10:59:51 +00:00
|
|
|
<!-- blog/_index.md content will goes here. -->
|
|
|
|
{{ .Content }}
|
2020-10-01 14:12:16 +00:00
|
|
|
<ul class="blog-posts">
|
2020-08-31 13:40:11 +00:00
|
|
|
{{ range .Pages }}
|
|
|
|
<li>
|
|
|
|
<span>
|
|
|
|
<i>
|
|
|
|
<time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
|
2021-04-06 06:47:59 +00:00
|
|
|
{{ .Date.Format (default "02 Jan, 2006" .Site.Params.dateFormat) }}
|
2020-08-31 13:40:11 +00:00
|
|
|
</time>
|
|
|
|
</i>
|
|
|
|
</span>
|
2024-03-09 10:59:51 +00:00
|
|
|
<a class="random-color blog-link" href="{{ .Permalink }}">{{ .Title }}</a>
|
2020-08-31 13:40:11 +00:00
|
|
|
</li>
|
|
|
|
{{ else }}
|
|
|
|
<li>
|
|
|
|
No posts yet
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
2024-03-09 10:59:51 +00:00
|
|
|
|
2024-03-10 04:47:53 +00:00
|
|
|
{{- /* Random Color Script */}}
|
2024-03-10 06:18:57 +00:00
|
|
|
{{- $random_color_script := (resources.Get "js/random_color.js") | resources.Minify }}
|
|
|
|
{{- if not site.Params.assets.disableFingerprinting }}
|
|
|
|
{{- $random_color_script := $random_color_script | fingerprint }}
|
|
|
|
<script async crossorigin="anonymous" src="{{ $random_color_script.RelPermalink }}" integrity="{{ $random_color_script.Data.Integrity }}"></script>
|
|
|
|
{{ else }}
|
|
|
|
<script async crossorigin="anonymous" src="{{ $random_color_script.RelPermalink }}"></script>
|
|
|
|
{{ end }}
|
2024-03-09 10:59:51 +00:00
|
|
|
|
2020-08-31 13:40:11 +00:00
|
|
|
{{ if .Data.Singular }}
|
|
|
|
{{else}}
|
|
|
|
<small>
|
|
|
|
<div>
|
|
|
|
{{ range .Site.Taxonomies.tags }}
|
|
|
|
<a href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</small>
|
|
|
|
{{ end }}
|
|
|
|
</content>
|
|
|
|
{{ end }}
|