rename .html.tmpl files to .html

This commit is contained in:
Ben Goldsworthy 2025-01-05 17:25:32 +01:00
parent 438fdbe22d
commit 37da8acf5a
Signed by: Rumperuu
SSH key fingerprint: SHA256:e5XfzNOr9UvWpEzyLfw0GtTMZWIFh3NmxH+/qQIi3xE
27 changed files with 29 additions and 29 deletions

View file

@ -0,0 +1,26 @@
<!--
Renders the related items for a given organisation.
@params sc Site context
@params organisation_titles `dict` of organsation titles for this org and all of its children.
-->
{{- $sc := .sc -}}
{{- $organisation_titles := .organisation_titles -}}
<section id="related" class="organisation__related">
<!-- Blog posts -->
{{- partial "cv/organisation/related-items-section.html" ( dict "sc" $sc "tls" "blog" "section_title" "Blog Posts" "organisation_titles" $organisation_titles ) -}}
<!-- Portfolios -->
{{- range ( ( $sc.GetPage "portfolio" ).Sections ).ByWeight -}}
{{- partial "cv/organisation/related-items-section.html" ( dict "sc" $sc "tls" "portfolio" "section_title" .Title "organisation_titles" $organisation_titles ) -}}
{{- end -}}
<!-- Qualifications, Awards and Appearances -->
{{- range ( where ( ( $sc.GetPage "cv" ).Sections ) "Title" "not in" ( slice "Organisations" "Roles" ) ).ByWeight }}
{{- partial "cv/organisation/related-items-section.html" ( dict "sc" $sc "tls" "cv" "section_title" .Title "organisation_titles" $organisation_titles ) -}}
{{- end -}}
</section>