mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-12-19 09:02:18 +01: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:
parent
d7a526f9fd
commit
826bd2de54
@ -11,7 +11,7 @@
|
|||||||
<section class="sidebar-module">
|
<section class="sidebar-module">
|
||||||
<h4>Recent Posts</h4>
|
<h4>Recent Posts</h4>
|
||||||
<ol class="list-unstyled">
|
<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>
|
<li><a href="{{.RelPermalink}}">{{.Title}}</a></li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ol>
|
</ol>
|
||||||
|
Loading…
Reference in New Issue
Block a user