Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/toryanderson/hugo-icarus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTory S. Anderson <torys.anderson@gmail.com>2020-04-29 20:27:25 +0300
committerTory S. Anderson <torys.anderson@gmail.com>2020-04-29 20:27:25 +0300
commitfb12dfbddbc4edbdfed806c6cecc47b9ce446436 (patch)
tree718af746cce2c735e65e3b01adb1b27ff55a7745
parent12af233c7a1edb6ad278af61527fe76fe615c52c (diff)
showing recents
-rw-r--r--layouts/partials/widgets/recent_articles.html4
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">