all repos — blog @ 426f19f16fc0d90f860e3ad531aee9fdc79ef271

Code and content for 5ika.ch

Show last notes in activity
Tim Izzo tim@5ika.ch
Fri, 06 Mar 2026 20:09:13 +0100
commit

426f19f16fc0d90f860e3ad531aee9fdc79ef271

parent

55296ab1384bac4083edb00997fad02d6e76d43b

1 files changed, 7 insertions(+), 0 deletions(-)

jump to
M layouts/shortcodes/activity.htmllayouts/shortcodes/activity.html

@@ -1,5 +1,12 @@

<h3 style="margin-top:2rem">Activité récente</h3> <div class="activity-grid"> + <h4>Dernières notes</h4> + <div> + {{ range first 1 (where site.RegularPages "Section" "notes") }} + <a href="{{ .RelPermalink }}">Semaine du {{ .Date | time.Format "02.01.06" }} - {{ .LinkTitle }}</a> + {{end}} + </div> + <h4>Dernière publication</h4> <div> {{ range first 1 (where site.RegularPages "Section" "posts") }}