Kimberley Mackenzie e35e01f06f
Prettier Spike (#1517)
* Add Prettier set-up (no formatting in this commit).

* Manual fixes for Prettier issues.

* Run Prettier fix on non-markdown files.

* Incorporate Prettier PR feedback - update commands, re-apply new yaml styles, add editor config.

* Remove deprecated config item.

* Add dependency on prettier-plugin-go-template.

* reconcile changed file with prettier formatting.

* Add git blame ignore revs file to include Prettier formatting commit.

* Fix format issue with merge conflict.
2022-06-01 10:58:20 -07:00

23 lines
874 B
HTML

{{ if .context.Params.links }}
<!-- Note: These if-statements must be separate for the build to succeed. -->
{{ if gt (len .context.Params.links) 0 }}
{{ $links := sort .context.Params.links }}
<div class="mt-16">
<h5 class="uppercase text-sm mt-2 mb-4 pb-4 text-gray-600">See Also</h5>
<ul class="p-0 list-none">
{{ range $index, $link := .context.Params.links }}
<li
class="flex items-center list-none border-gray-200
{{- if lt (add $index 1) (len $links) }}pb-4 mb-4 border-b border-gray-100{{ end -}}
"
>
<a href="{{ .url }}">{{ .text }}</a>
</li>
{{ end }}
</ul>
</div>
{{ end }}
{{ else }}
<div></div>
{{ end }}