1
0
Fork 0
faulty.equipment/layouts/shortcodes/series-recap.html

12 lines
489 B
HTML
Raw Permalink Normal View History

2023-09-16 11:50:53 +00:00
{{ $tag := .Get 0 }} {{ $param := .Get 1 }} {{ $pages := where (sort
site.RegularPages "Date" "asc") ".Params.tags" "intersect" (slice $tag) }} {{
with $pages }}
<nav class="article-list-recap">
{{ range . }}{{ $current := ne .RelPermalink $.Page.RelPermalink}}{{ if
$current }}<a href="{{ .RelPermalink }}"
>{{ else }}<b>{{ end }}{{ if $param }}{{ index .Params $param }}{{ else }}{{ .Title }}{{
end }}{{ if $current }}</a
>{{ else }}</b>{{ end }}{{ end }}
</nav>
{{ end }}