ContainerImage.Pinniped/site/themes/pinniped/layouts/_default/single.html

30 lines
729 B
HTML
Raw Permalink Normal View History

2020-11-06 22:42:57 +00:00
{{ define "main" }}
<main>
<article>
<div class="hero subpage">
<div class="wrapper">
<h2 class="h1">Pinniped blog</h2>
2020-11-06 22:42:57 +00:00
</div>
</div>
<div class="wrapper blog">
<div class="blog-post">
<h1 class="h2">{{ .Title }}</h1>
{{ partial "authors" .}}
2020-11-06 22:42:57 +00:00
<p class="date">{{ dateFormat "Jan 2, 2006" .Date }}</p>
{{ .Content }}
</div>
{{ $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 }}
</div>
{{ end }}
2020-11-06 22:42:57 +00:00
</div>
</article>
</main>
{{ partial "getting-started" . }}
2020-11-06 22:42:57 +00:00
{{ end }}