diff options
author | mms <michal@sapka.me> | 2024-05-25 22:10:55 +0200 |
---|---|---|
committer | mms <michal@sapka.me> | 2024-05-25 22:10:55 +0200 |
commit | c1a74cc9d62515d0bc1c09522de223c32f2cfd18 (patch) | |
tree | db74591ef4a66988d9c20fd96bf8228556d3278c /layouts/shortcodes/recent-updates.html | |
parent | 2d27ad1d9b96ace302ddef93e48d7b78863efa43 (diff) |
feat: tidy up BR menu
Diffstat (limited to 'layouts/shortcodes/recent-updates.html')
-rw-r--r-- | layouts/shortcodes/recent-updates.html | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/layouts/shortcodes/recent-updates.html b/layouts/shortcodes/recent-updates.html index 027f3bd..a214704 100644 --- a/layouts/shortcodes/recent-updates.html +++ b/layouts/shortcodes/recent-updates.html @@ -3,15 +3,17 @@ {{ $more_link := .Get 1 }} {{ $caption := .Inner }} -<nav> - {{- range - (where .Site.RegularPages ".Params.Categories" "intersect" $filter).ByDate.Reverse }} - {{ partial "partials/article_list_item.html" . }} - {{- end }} +<nav class="recent-updates"> + <h2>{{ $caption }}</h2> + <ul> + {{- range + (where .Site.RegularPages ".Params.Categories" "intersect" $filter).ByDate.Reverse.Limit 5 }} + + <li><a href="{{ .Permalink }}">{{ .Title }}</a> + (<time>{{ .PublishDate.Format "2006-01-02" }}</time>) + {{- end }} - {{- range - (where .Site.RegularPages ".Params.category" "intersect" $filter).ByDate.Reverse }} - {{ partial "partials/article_list_item.html" . }} - {{- end }} + + </ul> </nav> |