fix(menu): show only "real" posts and not "dynamic" pages in most recent posts

When there are few pages in the site, .Site.Pages will show also some dynamically generated taxonomy pages in the most recent posts section of the menu (along with some entirely broken links). .Site.RegularPages will only display the regular pages instead of displaying all pages in the site.
This commit is contained in:
soul9 2017-04-02 18:03:37 +02:00 committed by John Soros
parent 42906e9aad
commit 09f743f976
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<div id="last-posts" class="open">
<h3 data-open="last-posts">{{ .Site.Title }} - {{ ( index $.Site.Data.translations $.Site.Params.locale ).mostrecentposts }}</h3>
<ul>
{{ range first 10 .Site.Pages }}
{{ range first 10 .Site.RegularPages }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>