1
0
Fork 0
faulty.equipment/layouts/shortcodes/next-up.html
Hamcha 836f08ecbb
Some checks failed
continuous-integration/drone/push Build is failing
spam the feed!
2023-09-16 16:19:58 +02:00

12 lines
418 B
HTML

{{ $tag := .Get 0 }} {{ $param := .Get 1 }} {{ $next := sort (where (sort
site.RegularPages "Date" "asc") ".Date" "gt" .Page.Date) ".Params.tags"
"intersect" (slice $tag) | first 1 }} {{ with $next }} {{ $page := index . 0 }}
<h3>
Next up:
<a href="{{ $page.RelPermalink }}"
>{{ with $param }}{{ index $page.Params $param }}{{ else }}{{ $page.Title
}}{{ end }}</a
>
</h3>
{{ else }}{{ .Inner }}{{ end }}