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

13 lines
404 B
HTML

{{ $sectionPages := where .context.Site.Pages ".Section" "learn" }}
{{ $modules := where $sectionPages ".Layout" "module" }}
{{ $optionalModule := .module }}
<ul class="p-0">
{{ range sort $modules ".Params.index" }}
<li class="list-none px-4 p-2 {{ if eq $optionalModule . }}font-bold{{ end }}">
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>