34 lines
756 B
HTML
34 lines
756 B
HTML
{{ define "main" }}
|
|
<main>
|
|
<article>
|
|
<div class="hero subpage">
|
|
<div class="wrapper">
|
|
<h2>Pinniped Blog</h2>
|
|
</div>
|
|
</div>
|
|
<div class="wrapper blog">
|
|
<div class="blog-post">
|
|
<h3>{{ .Title }}</h3>
|
|
<p class="author">
|
|
<a href="/tags/{{ .Params.author | urlize }}">{{ .Params.author }}</a>
|
|
</p>
|
|
<p class="date">{{ dateFormat "Jan 2, 2006" .Date }}</p>
|
|
{{ .Content }}
|
|
</div>
|
|
<h3>Related Content</h3>
|
|
<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 }}
|
|
|
|
|
|
|