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

@ -30,7 +30,7 @@
}).addTo(map); }).addTo(map);
var latLons = []; var latLons = [];
{{ $locations := partialCached "util/get_location_leaf_nodes.html.tmpl" $.Site.Data.locations -}} {{ $locations := partialCached "util/get_location_leaf_nodes.html" $.Site.Data.locations -}}
{{- range . -}} {{- range . -}}
{{- with ( index $locations ( replaceRE `, [A-Z]+` "" . ) ) -}} {{- with ( index $locations ( replaceRE `, [A-Z]+` "" . ) ) -}}
L.marker([{{ .lat }}, {{ .lon }}]).addTo(map); L.marker([{{ .lat }}, {{ .lon }}]).addTo(map);

View file

@ -30,7 +30,7 @@
}).addTo(map); }).addTo(map);
var latLons = []; var latLons = [];
{{ $locations := partialCached "util/get_location_leaf_nodes.html.tmpl" $.Site.Data.locations -}} {{ $locations := partialCached "util/get_location_leaf_nodes.html" $.Site.Data.locations -}}
{{- range . -}} {{- range . -}}
{{- with ( index $locations ( replaceRE `, [A-Z]+` "" . ) ) -}} {{- with ( index $locations ( replaceRE `, [A-Z]+` "" . ) ) -}}
L.marker([{{ .lat }}, {{ .lon }}]).addTo(map); L.marker([{{ .lat }}, {{ .lon }}]).addTo(map);

View file

@ -28,7 +28,7 @@
{{ define "main-body" }} {{ define "main-body" }}
{{ with .GetPage "cv/organisations" }} {{ with .GetPage "cv/organisations" }}
{{ partial "cv/organisations/organisations-table.html.tmpl" . }} {{ partial "cv/organisations/organisations-table.html" . }}
{{ end }} {{ end }}
{{ end }} {{ end }}

View file

@ -152,7 +152,7 @@
{{ end }} {{ end }}
</ul> </ul>
</nav> </nav>
{{- partialCached "cv/timeline-legend.html.tmpl" . -}} {{- partialCached "cv/timeline-legend.html" . -}}
{{- else -}} {{- else -}}
<nav class="page-header__minor-links"> <nav class="page-header__minor-links">
{{- partial "years-list.html" . -}} {{- partial "years-list.html" . -}}
@ -172,11 +172,11 @@
<main class="site-content__body organisation"> <main class="site-content__body organisation">
{{- partial "cv/organisation/description.html.tmpl" ( dict "content" .Content ) -}} {{- partial "cv/organisation/description.html" ( dict "content" .Content ) -}}
{{- partial "cv/organisation/roles-timeline.html.tmpl" -}} {{- partial "cv/organisation/roles-timeline.html" -}}
{{- partial "cv/organisation/related-items.html.tmpl" ( dict "sc" $ "organisation_titles" ( .Scratch.Get "titles" ) "organisation_title" .Title ) -}} {{- partial "cv/organisation/related-items.html" ( dict "sc" $ "organisation_titles" ( .Scratch.Get "titles" ) "organisation_title" .Title ) -}}
</main> </main>

View file

@ -30,7 +30,7 @@
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>' attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>'
}).addTo(map); }).addTo(map);
{{- $locations := partialCached "util/get_location_leaf_nodes.html.tmpl" $.Site.Data.locations -}} {{- $locations := partialCached "util/get_location_leaf_nodes.html" $.Site.Data.locations -}}
{{/* {{/*
{{- range .Site.AllPages -}} {{- range .Site.AllPages -}}
@ -76,7 +76,7 @@
<div id="map" style="width: 100%; height: 500px; margin: 0; display: block;"></div> <div id="map" style="width: 100%; height: 500px; margin: 0; display: block;"></div>
<section style="grid-area: section-content"> <section style="grid-area: section-content">
{{- partial "util/render_recursive_list.html.tmpl" ( dict "sc" $ "pc" . "items" $.Site.Data.locations "schemaType" "Place" ) -}} {{- partial "util/render_recursive_list.html" ( dict "sc" $ "pc" . "items" $.Site.Data.locations "schemaType" "Place" ) -}}
</section> </section>
</article> </article>
{{ end }} {{ end }}

View file

@ -19,11 +19,11 @@
{{- with ( where $organisation_items ".Params.redact" "ne" true ) -}} {{- with ( where $organisation_items ".Params.redact" "ne" true ) -}}
{{- if in ( slice "Qualifications" "Awards" ) $section_title -}} {{- if in ( slice "Qualifications" "Awards" ) $section_title -}}
<section id="related-{{ $section_title | anchorize }}" class="related-section related-section--list"> <section id="related-{{ $section_title | anchorize }}" class="related-section related-section--list">
{{- partial "cv/organisation/organisation-items-list.html.tmpl" ( dict "organisation_title" $sc.Title "section_title" $section_title "content" . ) -}} {{- partial "cv/organisation/organisation-items-list.html" ( dict "organisation_title" $sc.Title "section_title" $section_title "content" . ) -}}
</section> </section>
{{- else -}} {{- else -}}
<section id="related-{{ $section_title | anchorize }}" class="related-section related-section--tiles"> <section id="related-{{ $section_title | anchorize }}" class="related-section related-section--tiles">
{{- partial "cv/organisation/organisation-items-tiles.html.tmpl" ( dict "section_title" $section_title "content" . ) -}} {{- partial "cv/organisation/organisation-items-tiles.html" ( dict "section_title" $section_title "content" . ) -}}
</section> </section>
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}

View file

@ -11,16 +11,16 @@
<section id="related" class="organisation__related"> <section id="related" class="organisation__related">
<!-- Blog posts --> <!-- Blog posts -->
{{- partial "cv/organisation/related-items-section.html.tmpl" ( dict "sc" $sc "tls" "blog" "section_title" "Blog Posts" "organisation_titles" $organisation_titles ) -}} {{- partial "cv/organisation/related-items-section.html" ( dict "sc" $sc "tls" "blog" "section_title" "Blog Posts" "organisation_titles" $organisation_titles ) -}}
<!-- Portfolios --> <!-- Portfolios -->
{{- range ( ( $sc.GetPage "portfolio" ).Sections ).ByWeight -}} {{- range ( ( $sc.GetPage "portfolio" ).Sections ).ByWeight -}}
{{- partial "cv/organisation/related-items-section.html.tmpl" ( dict "sc" $sc "tls" "portfolio" "section_title" .Title "organisation_titles" $organisation_titles ) -}} {{- partial "cv/organisation/related-items-section.html" ( dict "sc" $sc "tls" "portfolio" "section_title" .Title "organisation_titles" $organisation_titles ) -}}
{{- end -}} {{- end -}}
<!-- Qualifications, Awards and Appearances --> <!-- Qualifications, Awards and Appearances -->
{{- range ( where ( ( $sc.GetPage "cv" ).Sections ) "Title" "not in" ( slice "Organisations" "Roles" ) ).ByWeight }} {{- range ( where ( ( $sc.GetPage "cv" ).Sections ) "Title" "not in" ( slice "Organisations" "Roles" ) ).ByWeight }}
{{- partial "cv/organisation/related-items-section.html.tmpl" ( dict "sc" $sc "tls" "cv" "section_title" .Title "organisation_titles" $organisation_titles ) -}} {{- partial "cv/organisation/related-items-section.html" ( dict "sc" $sc "tls" "cv" "section_title" .Title "organisation_titles" $organisation_titles ) -}}
{{- end -}} {{- end -}}
</section> </section>

View file

@ -74,7 +74,7 @@
"Awards" "Awards"
"Appearances" "Appearances"
-}} -}}
{{- partialCached "cv/organisation/get-num-of-items.html.tmpl" ( dict "sc" $ "section_title" . "organisation_titles" $organisation_titles ) ( print $organisation_title "_" . ) -}} {{- partialCached "cv/organisation/get-num-of-items.html" ( dict "sc" $ "section_title" . "organisation_titles" $organisation_titles ) ( print $organisation_title "_" . ) -}}
{{- end -}} {{- end -}}
</td> </td>
</tr> </tr>

View file

@ -11,7 +11,7 @@
{{- if ( isset $v "lat" ) -}} {{- if ( isset $v "lat" ) -}}
{{- $locations = merge $locations ( dict $k $v ) -}} {{- $locations = merge $locations ( dict $k $v ) -}}
{{- else -}} {{- else -}}
{{- $locations = merge $locations ( partial "util/get_location_leaf_nodes.html.tmpl" . ) -}} {{- $locations = merge $locations ( partial "util/get_location_leaf_nodes.html" . ) -}}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}

View file

@ -44,7 +44,7 @@
<li itemscope itemtype="https://schema.org/Place"> <li itemscope itemtype="https://schema.org/Place">
{{- $k -}} {{- $k -}}
{{- if ( not ( isset $v "lat" ) ) -}} {{- if ( not ( isset $v "lat" ) ) -}}
{{- partial "util/render_recursive_list.html.tmpl" ( dict "sc" $.sc "pc" $.pc "items" $v "schemaType" $schemaType "listType" $listType ) -}} {{- partial "util/render_recursive_list.html" ( dict "sc" $.sc "pc" $.pc "items" $v "schemaType" $schemaType "listType" $listType ) -}}
{{- end -}} {{- end -}}
</li> </li>
{{- end -}} {{- end -}}

View file

@ -7,7 +7,7 @@
For works cited (optional): For works cited (optional):
@params ibid Whether to use ibidem as the source. Optional. @params ibid Whether to use ibidem as the source. Optional.
@see partials/cite.html.tmpl for full list of args. @see partials/cite.html for full list of args.
For works cited that form part of a series (optional): For works cited that form part of a series (optional):
@params schemaTypeSeries The Schema.org `itemtype` value for the work series. Default 'CreativeWork'. Optional. @params schemaTypeSeries The Schema.org `itemtype` value for the work series. Default 'CreativeWork'. Optional.
@ -63,14 +63,14 @@
<abbr lang="la" title="ibīdem [in the same place]">Ibid.</abbr> <abbr lang="la" title="ibīdem [in the same place]">Ibid.</abbr>
{{- else if $source -}} {{- else if $source -}}
<span temprop="spokenByCharacter">{{- $source | safeHTML -}}</span> <span temprop="spokenByCharacter">{{- $source | safeHTML -}}</span>
{{- if $hasCitedWork -}}, <span itemprop="isBasedOn">{{- partial "cite.html.tmpl" . -}} {{- if $hasCitedWork -}}, <span itemprop="isBasedOn">{{- partial "cite.html" . -}}
{{- if $hasCitedSeries }} ( {{- if $hasCitedSeries }} (
{{- .Scratch.Set "cite" .Params.citeSeries -}} {{- .Scratch.Set "cite" .Params.citeSeries -}}
{{- .Scratch.Set "title" .Params.titleSeries -}} {{- .Scratch.Set "title" .Params.titleSeries -}}
{{- .Scratch.Set "titleLang" .Params.titleSeriesLang -}} {{- .Scratch.Set "titleLang" .Params.titleSeriesLang -}}
{{- .Scratch.Set "titleTr" .Params.titleSeriesTr -}} {{- .Scratch.Set "titleTr" .Params.titleSeriesTr -}}
{{- .Scratch.Set "schemaType" .Params.schemaTypeSeries -}} {{- .Scratch.Set "schemaType" .Params.schemaTypeSeries -}}
{{- partial "cite.html.tmpl" . -}} {{- partial "cite.html" . -}}
{{- with .Params.numberSeries }}, {{ . | safeHTML -}}{{- end -}} {{- with .Params.numberSeries }}, {{ . | safeHTML -}}{{- end -}}
){{- end -}}</span> ){{- end -}}</span>
{{- end -}} {{- end -}}

View file

@ -25,4 +25,4 @@
{{- $citationId := printf "%s%s" ( cond ( isset .Params "cite" ) .Params.cite .Params.title ) ( default "" .Params.shortTitle ) -}} {{- $citationId := printf "%s%s" ( cond ( isset .Params "cite" ) .Params.cite .Params.title ) ( default "" .Params.shortTitle ) -}}
{{- partialCached "cite.html.tmpl" . $citationId -}} {{- partialCached "cite.html" . $citationId -}}

View file

@ -10,7 +10,7 @@
{{- $src := $.Page.Resources.GetMatch ( .Get "src" ) -}} {{- $src := $.Page.Resources.GetMatch ( .Get "src" ) -}}
{{- $linkedResource := $.Page.Resources.GetMatch ( .Get "link" ) -}} {{- $linkedResource := $.Page.Resources.GetMatch ( .Get "link" ) -}}
{{- $valid_rel_values := partialCached "util/get_valid_rel_values.html.tmpl" . -}} {{- $valid_rel_values := partialCached "util/get_valid_rel_values.html" . -}}
<!-- Validation --> <!-- Validation -->
@ -40,14 +40,14 @@
{{- end -}} {{- end -}}
{{- if eq $src.ResourceType "image" -}} {{- if eq $src.ResourceType "image" -}}
{{- partial "media/picture.html.tmpl" $src -}} {{- partial "media/picture.html" $src -}}
{{- else if eq $src.ResourceType "video" -}} {{- else if eq $src.ResourceType "video" -}}
{{- if eq $src.MediaType "video/ogg" -}} {{- if eq $src.MediaType "video/ogg" -}}
{{- partial "media/audio.html.tmpl" $src -}} {{- partial "media/audio.html" $src -}}
{{- else -}} {{- else -}}
{{- partial "media/video.html.tmpl" ( dict "src" $src "page_file_path" .Page.File.Path ) -}} {{- partial "media/video.html" ( dict "src" $src "page_file_path" .Page.File.Path ) -}}
{{- end -}} {{- end -}}

View file

@ -10,7 +10,7 @@
{{- $src := $.Page.Resources.GetMatch ( .Get "src" ) -}} {{- $src := $.Page.Resources.GetMatch ( .Get "src" ) -}}
{{- $linkedResource := $.Page.Resources.GetMatch ( .Get "link" ) -}} {{- $linkedResource := $.Page.Resources.GetMatch ( .Get "link" ) -}}
{{- $valid_rel_values := partialCached "util/get_valid_rel_values.html.tmpl" . -}} {{- $valid_rel_values := partialCached "util/get_valid_rel_values.html" . -}}
<!-- Validation --> <!-- Validation -->
@ -38,7 +38,7 @@
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
{{- partial "media/picture.html.tmpl" $src -}} {{- partial "media/picture.html" $src -}}
{{- if .Get "link" -}} {{- if .Get "link" -}}
</a> </a>

View file

@ -10,7 +10,7 @@
{{- $src := $.Page.Resources.GetMatch ( .Get "src" ) -}} {{- $src := $.Page.Resources.GetMatch ( .Get "src" ) -}}
{{- $linkedResource := $.Page.Resources.GetMatch ( .Get "link" ) -}} {{- $linkedResource := $.Page.Resources.GetMatch ( .Get "link" ) -}}
{{- $valid_rel_values := partialCached "util/get_valid_rel_values.html.tmpl" . -}} {{- $valid_rel_values := partialCached "util/get_valid_rel_values.html" . -}}
<!-- Validation --> <!-- Validation -->
@ -40,7 +40,7 @@
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
{{- partial "media/video.html.tmpl" ( dict "src" $src "page_file_path" .Page.File.Path ) -}} {{- partial "media/video.html" ( dict "src" $src "page_file_path" .Page.File.Path ) -}}
{{- if .Get "link" -}} {{- if .Get "link" -}}
</a> </a>