Add missing .html extension to partials

This commit is contained in:
Will Faught
2022-12-31 21:30:33 -08:00
parent f26b35ff0f
commit 016a9f3e57
17 changed files with 44 additions and 44 deletions

View File

@@ -1,7 +1,7 @@
<article>
<div class="align-items-center d-flex flex-column mb-0">
{{ partial "paige/metadata" . }}
{{ partial "paige/toc" . }}
{{ partial "paige/content" . }}
{{ partial "paige/metadata.html" . }}
{{ partial "paige/toc.html" . }}
{{ partial "paige/content.html" . }}
</div>
</article>

View File

@@ -1,9 +1,9 @@
<head>
{{ partial "paige/metas" . }}
<title>{{ partial "paige/func-title" . }}</title>
{{ partial "paige/links" . }}
{{ partial "paige/style" . }}
{{ partial "paige/metas.html" . }}
<title>{{ partial "paige/func-title.html" . }}</title>
{{ partial "paige/links.html" . }}
{{ partial "paige/style.html" . }}
{{ if templates.Exists "partials/paige-head-last.html" }}
{{ partial "paige/head-last" . }}
{{ partial "paige/head-last.html" . }}
{{ end }}
</head>

View File

@@ -1,5 +1,5 @@
{{ if .Site.Menus.main }}
<header>
{{ partial "paige/menu" . }}
{{ partial "paige/menu.html" . }}
</header>
{{ end }}

View File

@@ -8,22 +8,22 @@
<link href="{{ relLangURL `favicon.svg` }}" rel="icon" type="image/svg+xml">
<link color="{{ .Site.Params.paige.color | default `#0d6efd` }}" href="{{ relLangURL `safari-pinned-tab.svg` }}" rel="mask-icon">
<link href="{{ relLangURL `site.webmanifest` }}" rel="manifest">
{{ partial "paige/link" (dict
{{ partial "paige/link.html" (dict
"href" (.Site.Params.paige.bootstrap.icons.link_href | default "https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.3/font/bootstrap-icons.css")
"integrity" (.Site.Params.paige.bootstrap.icons.link_integrity | default "sha384-b6lVK+yci+bfDmaY1u0zE8YYJt0TZxLEAFyYSLHId4xoVvsrQu3INevFKo+Xir8e")
) }}
{{ partial "paige/link" (dict
{{ partial "paige/link.html" (dict
"href" (.Site.Params.paige.bootstrap.style.link_href | default "https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css")
"integrity" (.Site.Params.paige.bootstrap.style.link_integrity | default "sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD")
) }}
{{ if or .Params.paige.math (and .Params.paige.show_full_pages (where .Pages "Params.paige.math" "eq" true)) }}
{{ partial "paige/link" (dict
{{ partial "paige/link.html" (dict
"href" (.Site.Params.paige.math.style.link_href | default "https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/katex.min.css")
"integrity" (.Site.Params.paige.math.style.link_integrity | default "sha384-Juol1FqnotbkyZUT5Z7gUPjQ9gzlwCENvUZTpQBAPxtusdwFLRy382PSDx5UUJ4/")
) }}
{{ end }}
{{ if .AlternativeOutputFormats }}
{{ $title := partial "paige/func-title" . }}
{{ $title := partial "paige/func-title.html" . }}
{{ range .AlternativeOutputFormats }}
<link href="{{ .Permalink }}" rel="{{ .Rel }}" title="{{ $title }}" type="{{ .MediaType.Type }}">
{{ end }}

View File

@@ -1,5 +1,5 @@
<section class="paige-metadata">
{{ partial "paige/title" . }}
{{ partial "paige/description" . }}
{{ partial "paige/other" . }}
{{ partial "paige/title.html" . }}
{{ partial "paige/description.html" . }}
{{ partial "paige/other.html" . }}
</section>

View File

@@ -1,5 +1,5 @@
<meta charset="utf-8">
{{ with partial "paige/func-authors" . }}
{{ with partial "paige/func-authors.html" . }}
<meta content="{{ . }}" name="author">
{{ end }}
{{ with .Description }}

View File

@@ -1,4 +1,4 @@
{{ $authors := partial "paige/func-authors" . }}
{{ $authors := partial "paige/func-authors.html" . }}
{{ if or $authors .PublishDate}}
<p class="text-center text-secondary">
{{- with $authors }}{{ . }}{{ end -}}

View File

@@ -4,13 +4,13 @@
<section>
{{ range $p.Pages }}
{{ .Scratch.Set "paige_show_full_pages" true }}
{{ partial "paige/article" . }}
{{ partial "paige/article.html" . }}
{{ end }}
</section>
{{ if or $p.HasPrev $p.HasNext }}
<section>
<div class="d-flex justify-content-center">
{{ partial "paige/pagination" . }}
{{ partial "paige/pagination.html" . }}
</div>
</section>
{{ end }}
@@ -29,7 +29,7 @@
{{ if or $p.HasPrev $p.HasNext }}
<section>
<div class="d-flex justify-content-center">
{{ partial "paige/pagination" . }}
{{ partial "paige/pagination.html" . }}
</div>
</section>
{{ end }}

View File

@@ -40,16 +40,16 @@ paigeQuery.addEventListener("change", function (e) {
{{ end }}
</script>
<noscript>{{ i18n "paige_noscript" }}</noscript>
{{ partial "paige/script" (dict
{{ partial "paige/script.html" (dict
"integrity" (.Site.Params.paige.bootstrap.script.script_integrity | default "sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN")
"src" (.Site.Params.paige.bootstrap.script.script_src | default "https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js")
) }}
{{ if or .Params.paige.math (and .Params.paige.show_full_pages (where .Pages "Params.paige.math" "eq" true)) }}
{{ partial "paige/script" (dict
{{ partial "paige/script.html" (dict
"integrity" (.Site.Params.paige.math.script.script_integrity | default "sha384-97gW6UIJxnlKemYavrqDHSX3SiygeOwIZhwyOKRfSaf0JWKRVj9hLASHgFTzT+0O")
"src" (.Site.Params.paige.math.script.script_src | default "https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/katex.min.js")
) }}
{{ partial "paige/script" (dict
{{ partial "paige/script.html" (dict
"integrity" (.Site.Params.paige.math.autorender.script_integrity | default "sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05")
"onload" "renderMathInElement(document.body);"
"src" (.Site.Params.paige.math.autorender.script_src | default "https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/contrib/auto-render.min.js")