ContainerImage.Pinniped/site/themes/pinniped/layouts/_default/single.html
Amy Manion ef11f97a75 Style updates
-adjust font sizes
-fix ordered lists

Signed-off-by: Amy Manion <amy.manion@principlestudios.com>
2020-11-12 09:35:17 -05:00

34 lines
756 B
HTML

{{ define "main" }}
<main>
<article>
<div class="hero subpage">
<div class="wrapper">
<h1>Pinniped Blog</h1>
</div>
</div>
<div class="wrapper blog">
<div class="blog-post">
<h2>{{ .Title }}</h2>
<p class="author">
<a href="/tags/{{ .Params.author | urlize }}">{{ .Params.author }}</a>
</p>
<p class="date">{{ dateFormat "Jan 2, 2006" .Date }}</p>
{{ .Content }}
</div>
<h2>Related Content</h2>
<div class="grid three">
{{ $related := (where (.Site.RegularPages.Related .) "Type" "posts") | first 3 }}
{{ with $related }}
{{ range . }}
{{ partial "blog-post-card.html" . }}
{{ end }}
{{ end }}
</div>
</div>
</article>
</main>
{{ end }}