site/layouts: use bubble buttons for elements

I got rid of these when initially trying to group the elements for
each module together under their clusters, but actually now there
are less elements so we can keep this bubble style. A bonus is that
we don't need to figure out how to delimit by comma in Hugo's Go
templates (the last one is always tricky).
This commit is contained in:
Alan Orth 2022-02-06 21:04:20 +03:00
parent 89c6228770
commit 008ff55695
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -14,7 +14,7 @@
{{/* Use range over a nested where. The way to read this is */}} {{/* Use range over a nested where. The way to read this is */}}
{{/* from the inside out: terms, cluster, module. */}} {{/* from the inside out: terms, cluster, module. */}}
{{ range where (where (where site.RegularPages "Type" "terms") "Params.cluster" "==" $cluster) "Params.module" "==" $module }} {{ range where (where (where site.RegularPages "Type" "terms") "Params.cluster" "==" $cluster) "Params.module" "==" $module }}
<a href="#{{ .Params.slug }}">{{ .Params.field }}</a> <a class="btn btn-sm btn-outline-primary m-1" href="#{{ .Params.slug }}">{{ .Params.field }}</a>
{{ end }} {{ end }}
</td> </td>
</tr> </tr>