2022-11-11 05:48:02 +00:00
|
|
|
|
{{ define "title" }}
|
|
|
|
|
{{ .Page.Title | plainify }} | {{ .Site.Title }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
2023-08-07 22:23:46 +00:00
|
|
|
|
{{ define "main-class" }}--section layouts-blog-section{{ end }}
|
2022-11-11 05:48:02 +00:00
|
|
|
|
|
|
|
|
|
{{ define "main-type" }}{{ .Params.mainType }}{{ end }}
|
|
|
|
|
|
|
|
|
|
{{ define "footer-scripts" }}
|
2024-07-23 08:08:36 +00:00
|
|
|
|
<script src="/js/lazy-images.js"></script>
|
2022-11-11 05:48:02 +00:00
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
{{ define "main-header" }}
|
|
|
|
|
<header class="site-content__header">
|
2023-07-01 03:16:59 +00:00
|
|
|
|
<h2 class="page-title">{{ .Title | safeHTML }}
|
2022-11-11 05:48:02 +00:00
|
|
|
|
{{ if eq .Type "blog" }}
|
|
|
|
|
{{ with .GetPage "blog/posts" }}
|
|
|
|
|
{{ range .AlternativeOutputFormats -}}
|
2023-07-01 03:16:59 +00:00
|
|
|
|
<a href="{{ .RelPermalink }}" aria-label="{{ $.Title }} RSS feed">
|
2023-08-22 10:14:33 +00:00
|
|
|
|
<img class="feed-icon" alt="RSS feed" src="{{ $.Site.Params.feedIcon }}">
|
2022-11-11 05:48:02 +00:00
|
|
|
|
</a>
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ else }}
|
|
|
|
|
{{ range .AlternativeOutputFormats -}}
|
2023-07-01 03:16:59 +00:00
|
|
|
|
<a href="{{ .RelPermalink }}" aria-label="{{ $.Title }} RSS feed">
|
2023-08-22 10:14:33 +00:00
|
|
|
|
<img class="feed-icon" alt="RSS feed" src="{{ $.Site.Params.feedIcon }}">
|
2023-07-01 03:16:59 +00:00
|
|
|
|
</a>
|
|
|
|
|
{{ end }}
|
2022-11-11 05:48:02 +00:00
|
|
|
|
{{ end }}
|
2023-07-01 03:16:59 +00:00
|
|
|
|
</h2>
|
2022-11-11 05:48:02 +00:00
|
|
|
|
{{ .Content }}
|
|
|
|
|
|
|
|
|
|
<nav class="page-header__minor-links">
|
|
|
|
|
<ul class="minor-links__categories">
|
2023-07-01 03:16:59 +00:00
|
|
|
|
<li><a href="/series"><h3>Series’</h3></a> <p>({{ len .Site.Taxonomies.series }})</p></li>
|
2022-11-11 05:48:02 +00:00
|
|
|
|
{{ range .Site.Taxonomies.categories }}
|
2023-07-01 03:16:59 +00:00
|
|
|
|
<li><a href="{{ .Page.RelPermalink }}"><h3>{{ .Page.Title | safeHTML }}</h3></a> <p>({{ len . }})</p></li>
|
2022-11-11 05:48:02 +00:00
|
|
|
|
{{ end }}
|
|
|
|
|
</ul>
|
|
|
|
|
{{ if eq .Type "blog" }}
|
|
|
|
|
{{ with .GetPage "blog/posts" }}
|
|
|
|
|
{{ partial "years-list.html" . }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ else }}
|
|
|
|
|
{{ partial "years-list.html" . }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
</nav>
|
|
|
|
|
</header>
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
{{ define "main-body" }}
|
|
|
|
|
{{ if eq .Type "blog" }}
|
|
|
|
|
{{ with .GetPage "blog/posts" }}
|
|
|
|
|
{{ partial "items-grid.html" . }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ else }}
|
|
|
|
|
{{ partial "items-grid.html" . }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ end }}
|