12 lines
489 B
HTML
12 lines
489 B
HTML
|
{{ $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 }}
|