bring sidebar back for single pages
This commit is contained in:
parent
e284283965
commit
5b51f4d9da
2 changed files with 15 additions and 0 deletions
|
@ -17,4 +17,5 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</article>
|
</article>
|
||||||
</main>
|
</main>
|
||||||
|
{{ partial "sidebar.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
14
layouts/partials/sidebar.html
Normal file
14
layouts/partials/sidebar.html
Normal 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>
|
Loading…
Reference in a new issue