fix(): actually list most recent articles intead of older ones in side menu

This commit is contained in:
kendo5731 2016-02-07 13:36:04 +01:00
parent 5707d9da35
commit 9ccd3b3b66
1 changed files with 2 additions and 2 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 last 10 .Site.Pages }}
{{ range first 10 .Site.Pages }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
@ -20,7 +20,7 @@
</div>
{{ end }}
{{ with .Site.Taxonomies.categories }}
{{ with .Site.Taxonomies.categories }}
<div id="categories" class="open">
<h3 data-open="categories">{{ ( index $.Site.Data.translations $.Site.Params.locale ).categories }}</h3>
<ul class="categories">