diff options
Diffstat (limited to 'layouts/shortcodes/recent-updates.html')
-rw-r--r-- | layouts/shortcodes/recent-updates.html | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/layouts/shortcodes/recent-updates.html b/layouts/shortcodes/recent-updates.html index 24d3c95..959ebf5 100644 --- a/layouts/shortcodes/recent-updates.html +++ b/layouts/shortcodes/recent-updates.html @@ -1,10 +1,16 @@ {{ $category := .Get 0 }} {{ $filter := slice $category }} {{ $more_link := .Get 1 }} -{{ .Inner }} +{{ $caption := .Inner }} <nav> -{{ range (where .Site.RegularPages ".Params.category" "intersect" $filter) }} - {{ partial "partials/article_list_item.html" . }} -{{ end }} + {{- range + (where .Site.RegularPages ".Params.category" "intersect" $filter).ByDate.Reverse }} + {{ partial "partials/article_list_item.html" . }} + {{- end }} + + {{- range + (where .Site.RegularPages ".Params.Categories" "intersect" $filter).ByDate.Reverse }} + {{ partial "partials/article_list_item.html" . }} + {{- end }} </nav> |