diff options
-rw-r--r-- | layouts/partials/widgets/recent_articles.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/widgets/recent_articles.html b/layouts/partials/widgets/recent_articles.html index 80f0a41..d2f2891 100644 --- a/layouts/partials/widgets/recent_articles.html +++ b/layouts/partials/widgets/recent_articles.html @@ -4,8 +4,8 @@ {{with .Site.Data.l10n.widgets.recent_articles.title}}{{.}}{{end}} </h3> <div class="widget"> - <ul id="recent-post"> - {{ range first 5 (where .Site.RegularPages "Type" "post") }} + <ul id="recent-post"> + {{ range last 5 .Site.RegularPages.ByPublishDate }} <li> <div class="item-thumbnail"> <a href="{{ .Permalink }}" class="thumbnail"> |