diff options
| author | morph <morph@posteo.de> | 2020-05-27 00:34:21 +0200 |
|---|---|---|
| committer | morph <morph@posteo.de> | 2020-05-27 00:34:21 +0200 |
| commit | 5b51f4d9da25aa86b2e5ec3e62f3c09f0d8b8cf8 (patch) | |
| tree | 3c3932335a474eb1c07201047bf61d25c7606d81 /layouts/partials/sidebar.html | |
| parent | e284283965188dc91d0fbb7fcdfeb2daf6c0811c (diff) | |
bring sidebar back for single pages
Diffstat (limited to 'layouts/partials/sidebar.html')
| -rw-r--r-- | layouts/partials/sidebar.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html new file mode 100644 index 0000000..92bbd80 --- /dev/null +++ b/layouts/partials/sidebar.html @@ -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> |