summaryrefslogtreecommitdiff
path: root/layouts/partials/sidebar.html
diff options
context:
space:
mode:
authorvimux <vimux@protonmail.com>2019-07-30 17:32:26 -0400
committervimux <vimux@protonmail.com>2019-07-31 08:49:20 -0400
commitc8bf719e3d4a4c6ed1e70c5091f72e542ffc7a3d (patch)
treed81f0d69cedfc20638d42e88b19b08f23d8632da /layouts/partials/sidebar.html
parentc71d33abd2c051c19c6298f150277c9dbdbe2bcd (diff)
Define the Base Template and fix Hugo warnings
* Define the Base Template (baseof.html) * Use relative URL link to style.css file * Move summary.html from partials to _default layouts * Fix Hugo warnings (needs Hugo 0.20 or newer) * Fix Paginator rule on main page. Fix #8 * Latest posts: show pages from mainSections only * Bump Hugo 0.19 -> 0.20 * Formatting
Diffstat (limited to 'layouts/partials/sidebar.html')
-rw-r--r--layouts/partials/sidebar.html24
1 files changed, 12 insertions, 12 deletions
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index 679b16e..92bbd80 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -1,14 +1,14 @@
- <aside>
+<aside>
+ <div>
<div>
- <div>
- <h3>LATEST POSTS</h3>
- </div>
- <div>
- <ul>
- {{ range first 5 .Site.Pages }}
- <li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
- {{ end }}
- </ul>
- </div>
+ <h3>LATEST POSTS</h3>
</div>
- </aside>
+ <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>