diff options
author | Tory S. Anderson <torys.anderson@gmail.com> | 2020-04-29 20:27:25 +0300 |
---|---|---|
committer | Tory S. Anderson <torys.anderson@gmail.com> | 2020-04-29 20:27:25 +0300 |
commit | fb12dfbddbc4edbdfed806c6cecc47b9ce446436 (patch) | |
tree | 718af746cce2c735e65e3b01adb1b27ff55a7745 | |
parent | 12af233c7a1edb6ad278af61527fe76fe615c52c (diff) |
showing recents
-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"> |