bring sidebar back for single pages

This commit is contained in:
morph 2020-05-27 00:34:21 +02:00
parent e284283965
commit 5b51f4d9da
2 changed files with 15 additions and 0 deletions

View file

@ -17,4 +17,5 @@
{{ end }}
</article>
</main>
{{ partial "sidebar.html" . }}
{{ end }}

View file

@ -0,0 +1,14 @@
<aside>
<div>
<div>
<h3>LATEST POSTS</h3>
</div>
<div>
<ul>
{{ range first 5 (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
</div>
</div>
</aside>