1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-06-26 16:13:45 +02:00

layouts/partials/sidebar.html: Use "Type" instead of "Section"

Both work similarly here, but "Type" is more obvious to me.
This commit is contained in:
Alan Orth 2016-09-17 16:56:27 +03:00
parent d7a526f9fd
commit 826bd2de54
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -11,7 +11,7 @@
<section class="sidebar-module">
<h4>Recent Posts</h4>
<ol class="list-unstyled">
{{ range first $num_recent_posts (where .Site.Pages "Section" "post") }}
{{ range first $num_recent_posts (where .Site.Pages "Type" "post") }}
<li><a href="{{.RelPermalink}}">{{.Title}}</a></li>
{{ end }}
</ol>