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

35 lines
791 B
HTML
Raw Normal View History

2020-11-06 22:42:57 +00:00
{{ define "main" }}
<main>
<article>
<div class="hero subpage">
<div class="wrapper">
<h1>Pinniped blog</h1>
2020-11-06 22:42:57 +00:00
</div>
</div>
<div class="wrapper blog">
<div class="blog-post">
<h2>{{ .Title }}</h2>
2020-11-06 22:42:57 +00:00
<p class="author">
<a href="/tags/{{ .Params.author | urlize }}">{{ .Params.author }}</a>
</p>
<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 }}