diff options
author | Tory S. Anderson <torys.anderson@gmail.com> | 2020-04-29 21:50:05 +0300 |
---|---|---|
committer | Tory S. Anderson <torys.anderson@gmail.com> | 2020-04-29 21:50:05 +0300 |
commit | eebbdbc81480d1d606f7d462a8f04e15013eab5d (patch) | |
tree | 8b84295f8e4658d8db1463871b5a991eb78aa498 | |
parent | 1762091c70ac37d189ba3749ac93a66cf702d37f (diff) |
Order recents newest -> oldest
-rw-r--r-- | layouts/partials/widgets/recent_articles.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/widgets/recent_articles.html b/layouts/partials/widgets/recent_articles.html index d2f2891..506e0d7 100644 --- a/layouts/partials/widgets/recent_articles.html +++ b/layouts/partials/widgets/recent_articles.html @@ -5,7 +5,7 @@ </h3> <div class="widget"> <ul id="recent-post"> - {{ range last 5 .Site.RegularPages.ByPublishDate }} + {{ range first 5 .Site.RegularPages.ByPublishDate.Reverse }} <li> <div class="item-thumbnail"> <a href="{{ .Permalink }}" class="thumbnail"> |