Add missing .html extension to partials
This commit is contained in:
@@ -2,22 +2,22 @@
|
|||||||
{{ $rtl := eq .Language.LanguageDirection "rtl" }}
|
{{ $rtl := eq .Language.LanguageDirection "rtl" }}
|
||||||
{{ $lang := .Site.LanguageCode | default .Site.Language.Lang }}
|
{{ $lang := .Site.LanguageCode | default .Site.Language.Lang }}
|
||||||
<html{{ if eq .Site.Params.paige.color_scheme `dark` }} data-bs-theme="dark"{{ end }}{{ if $rtl }} dir="rtl"{{ end }}{{ with $lang }} lang="{{ . }}"{{ end }}>
|
<html{{ if eq .Site.Params.paige.color_scheme `dark` }} data-bs-theme="dark"{{ end }}{{ if $rtl }} dir="rtl"{{ end }}{{ with $lang }} lang="{{ . }}"{{ end }}>
|
||||||
{{ partial "paige/head" . }}
|
{{ partial "paige/head.html" . }}
|
||||||
<body class="d-flex flex-column">
|
<body class="d-flex flex-column">
|
||||||
<div class="container flex-fill">
|
<div class="container flex-fill">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
{{ partial "paige/header" . }}
|
{{ partial "paige/header.html" . }}
|
||||||
<main>
|
<main>
|
||||||
{{ block "main" . }}{{ end }}
|
{{ block "main" . }}{{ end }}
|
||||||
</main>
|
</main>
|
||||||
{{ partial "paige/footer" . }}
|
{{ partial "paige/footer.html" . }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ partial "paige/scripts" . }}
|
{{ partial "paige/scripts.html" . }}
|
||||||
{{ if templates.Exists "partials/paige-body-last.html" }}
|
{{ if templates.Exists "partials/paige-body-last.html" }}
|
||||||
{{ partial "paige/body-last" . }}
|
{{ partial "paige/body-last.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<article>
|
<article>
|
||||||
{{ partial "paige/metadata" . }}
|
{{ partial "paige/metadata.html" . }}
|
||||||
<section>
|
<section>
|
||||||
{{ with .Params.stretch }}
|
{{ with .Params.stretch }}
|
||||||
<div class="mb-3 mw-100 rounded-4 shadow" style="background-image: url('{{ relLangURL . }}'); background-position: center; background-size: cover; height: 20rem"></div>
|
<div class="mb-3 mw-100 rounded-4 shadow" style="background-image: url('{{ relLangURL . }}'); background-position: center; background-size: cover; height: 20rem"></div>
|
||||||
@@ -23,8 +23,8 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</section>
|
</section>
|
||||||
{{ partial "paige/toc" . }}
|
{{ partial "paige/toc.html" . }}
|
||||||
{{ partial "paige/content" . }}
|
{{ partial "paige/content.html" . }}
|
||||||
{{ partial "paige/social" . }}
|
{{ partial "paige/social.html" . }}
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ if not .Params.paige.show_full_pages }}
|
{{ if not .Params.paige.show_full_pages }}
|
||||||
{{ partial "paige/article" . }}
|
{{ partial "paige/article.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ partial "paige/pages" . }}
|
{{ partial "paige/pages.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ partial "paige/article" . }}
|
{{ partial "paige/article.html" . }}
|
||||||
{{ partial "paige/search" . }}
|
{{ partial "paige/search.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
{{ $pages = $pages | first $limit }}
|
{{ $pages = $pages | first $limit }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $pages = where $pages "Params.paige.hide_rss" "ne" true }}
|
{{ $pages = where $pages "Params.paige.hide_rss" "ne" true }}
|
||||||
{{ $title := partial "paige/func-title" . }}
|
{{ $title := partial "paige/func-title.html" . }}
|
||||||
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
<channel>
|
<channel>
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ range $pages }}
|
{{ range $pages }}
|
||||||
<item>
|
<item>
|
||||||
{{ with partial "paige/func-authors" . }}
|
{{ with partial "paige/func-authors.html" . }}
|
||||||
<author>{{ . }}</author>
|
<author>{{ . }}</author>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .Content }}
|
{{ if .Content }}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ partial "paige/article" . }}
|
{{ partial "paige/article.html" . }}
|
||||||
{{ partial "paige/comments" . }}
|
{{ partial "paige/comments.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ partial "paige/article" . }}
|
{{ partial "paige/article.html" . }}
|
||||||
{{ if .Pages }}
|
{{ if .Pages }}
|
||||||
<section>
|
<section>
|
||||||
<ul class="list-inline text-center">
|
<ul class="list-inline text-center">
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ partial "paige/article" . }}
|
{{ partial "paige/article.html" . }}
|
||||||
{{ partial "paige/pages" . }}
|
{{ partial "paige/pages.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<article>
|
<article>
|
||||||
<div class="align-items-center d-flex flex-column mb-0">
|
<div class="align-items-center d-flex flex-column mb-0">
|
||||||
{{ partial "paige/metadata" . }}
|
{{ partial "paige/metadata.html" . }}
|
||||||
{{ partial "paige/toc" . }}
|
{{ partial "paige/toc.html" . }}
|
||||||
{{ partial "paige/content" . }}
|
{{ partial "paige/content.html" . }}
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
<head>
|
<head>
|
||||||
{{ partial "paige/metas" . }}
|
{{ partial "paige/metas.html" . }}
|
||||||
<title>{{ partial "paige/func-title" . }}</title>
|
<title>{{ partial "paige/func-title.html" . }}</title>
|
||||||
{{ partial "paige/links" . }}
|
{{ partial "paige/links.html" . }}
|
||||||
{{ partial "paige/style" . }}
|
{{ partial "paige/style.html" . }}
|
||||||
{{ if templates.Exists "partials/paige-head-last.html" }}
|
{{ if templates.Exists "partials/paige-head-last.html" }}
|
||||||
{{ partial "paige/head-last" . }}
|
{{ partial "paige/head-last.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</head>
|
</head>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{{ if .Site.Menus.main }}
|
{{ if .Site.Menus.main }}
|
||||||
<header>
|
<header>
|
||||||
{{ partial "paige/menu" . }}
|
{{ partial "paige/menu.html" . }}
|
||||||
</header>
|
</header>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -8,22 +8,22 @@
|
|||||||
<link href="{{ relLangURL `favicon.svg` }}" rel="icon" type="image/svg+xml">
|
<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 color="{{ .Site.Params.paige.color | default `#0d6efd` }}" href="{{ relLangURL `safari-pinned-tab.svg` }}" rel="mask-icon">
|
||||||
<link href="{{ relLangURL `site.webmanifest` }}" rel="manifest">
|
<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")
|
"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")
|
"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")
|
"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")
|
"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)) }}
|
{{ 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")
|
"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/")
|
"integrity" (.Site.Params.paige.math.style.link_integrity | default "sha384-Juol1FqnotbkyZUT5Z7gUPjQ9gzlwCENvUZTpQBAPxtusdwFLRy382PSDx5UUJ4/")
|
||||||
) }}
|
) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .AlternativeOutputFormats }}
|
{{ if .AlternativeOutputFormats }}
|
||||||
{{ $title := partial "paige/func-title" . }}
|
{{ $title := partial "paige/func-title.html" . }}
|
||||||
{{ range .AlternativeOutputFormats }}
|
{{ range .AlternativeOutputFormats }}
|
||||||
<link href="{{ .Permalink }}" rel="{{ .Rel }}" title="{{ $title }}" type="{{ .MediaType.Type }}">
|
<link href="{{ .Permalink }}" rel="{{ .Rel }}" title="{{ $title }}" type="{{ .MediaType.Type }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<section class="paige-metadata">
|
<section class="paige-metadata">
|
||||||
{{ partial "paige/title" . }}
|
{{ partial "paige/title.html" . }}
|
||||||
{{ partial "paige/description" . }}
|
{{ partial "paige/description.html" . }}
|
||||||
{{ partial "paige/other" . }}
|
{{ partial "paige/other.html" . }}
|
||||||
</section>
|
</section>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
{{ with partial "paige/func-authors" . }}
|
{{ with partial "paige/func-authors.html" . }}
|
||||||
<meta content="{{ . }}" name="author">
|
<meta content="{{ . }}" name="author">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Description }}
|
{{ with .Description }}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{{ $authors := partial "paige/func-authors" . }}
|
{{ $authors := partial "paige/func-authors.html" . }}
|
||||||
{{ if or $authors .PublishDate}}
|
{{ if or $authors .PublishDate}}
|
||||||
<p class="text-center text-secondary">
|
<p class="text-center text-secondary">
|
||||||
{{- with $authors }}{{ . }}{{ end -}}
|
{{- with $authors }}{{ . }}{{ end -}}
|
||||||
|
@@ -4,13 +4,13 @@
|
|||||||
<section>
|
<section>
|
||||||
{{ range $p.Pages }}
|
{{ range $p.Pages }}
|
||||||
{{ .Scratch.Set "paige_show_full_pages" true }}
|
{{ .Scratch.Set "paige_show_full_pages" true }}
|
||||||
{{ partial "paige/article" . }}
|
{{ partial "paige/article.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</section>
|
</section>
|
||||||
{{ if or $p.HasPrev $p.HasNext }}
|
{{ if or $p.HasPrev $p.HasNext }}
|
||||||
<section>
|
<section>
|
||||||
<div class="d-flex justify-content-center">
|
<div class="d-flex justify-content-center">
|
||||||
{{ partial "paige/pagination" . }}
|
{{ partial "paige/pagination.html" . }}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
{{ if or $p.HasPrev $p.HasNext }}
|
{{ if or $p.HasPrev $p.HasNext }}
|
||||||
<section>
|
<section>
|
||||||
<div class="d-flex justify-content-center">
|
<div class="d-flex justify-content-center">
|
||||||
{{ partial "paige/pagination" . }}
|
{{ partial "paige/pagination.html" . }}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -40,16 +40,16 @@ paigeQuery.addEventListener("change", function (e) {
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</script>
|
</script>
|
||||||
<noscript>{{ i18n "paige_noscript" }}</noscript>
|
<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")
|
"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")
|
"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)) }}
|
{{ 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")
|
"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")
|
"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")
|
"integrity" (.Site.Params.paige.math.autorender.script_integrity | default "sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05")
|
||||||
"onload" "renderMathInElement(document.body);"
|
"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")
|
"src" (.Site.Params.paige.math.autorender.script_src | default "https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/contrib/auto-render.min.js")
|
||||||
|
Reference in New Issue
Block a user