2020-11-06 22:42:57 +00:00
|
|
|
{{ define "main" }}
|
|
|
|
<main>
|
|
|
|
<article>
|
|
|
|
<div class="hero subpage">
|
|
|
|
<div class="wrapper">
|
2023-09-20 16:55:48 +00:00
|
|
|
<h2 class="h1">Pinniped blog</h2>
|
2020-11-06 22:42:57 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="wrapper blog">
|
|
|
|
<div class="blog-post">
|
2023-09-20 16:55:48 +00:00
|
|
|
<h1 class="h2">{{ .Title }}</h1>
|
2023-08-14 17:07:04 +00:00
|
|
|
{{ partial "authors" .}}
|
2020-11-06 22:42:57 +00:00
|
|
|
<p class="date">{{ dateFormat "Jan 2, 2006" .Date }}</p>
|
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
2021-02-23 19:55:42 +00:00
|
|
|
{{ $related := (where (.Site.RegularPages.Related .) "Type" "posts") | first 3 }}
|
|
|
|
{{ with $related }}
|
|
|
|
<h2>Related content</h2>
|
|
|
|
<div class="grid three">
|
2020-11-06 22:42:57 +00:00
|
|
|
{{ range . }}
|
|
|
|
{{ partial "blog-post-card.html" . }}
|
|
|
|
{{ end }}
|
2021-02-23 19:55:42 +00:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
2020-11-06 22:42:57 +00:00
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
</main>
|
2021-02-23 19:55:42 +00:00
|
|
|
{{ partial "getting-started" . }}
|
2020-11-06 22:42:57 +00:00
|
|
|
{{ end }}
|