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

@@ -2,22 +2,22 @@
{{ $rtl := eq .Language.LanguageDirection "rtl" }}
{{ $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 }}>
{{ partial "paige/head" . }}
{{ partial "paige/head.html" . }}
<body class="d-flex flex-column">
<div class="container flex-fill">
<div class="row">
<div class="col">
{{ partial "paige/header" . }}
{{ partial "paige/header.html" . }}
<main>
{{ block "main" . }}{{ end }}
</main>
{{ partial "paige/footer" . }}
{{ partial "paige/footer.html" . }}
</div>
</div>
</div>
{{ partial "paige/scripts" . }}
{{ partial "paige/scripts.html" . }}
{{ if templates.Exists "partials/paige-body-last.html" }}
{{ partial "paige/body-last" . }}
{{ partial "paige/body-last.html" . }}
{{ end }}
</body>
</html>

View File

@@ -1,6 +1,6 @@
{{ define "main" }}
<article>
{{ partial "paige/metadata" . }}
{{ partial "paige/metadata.html" . }}
<section>
{{ 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>
@@ -23,8 +23,8 @@
</div>
{{ end }}
</section>
{{ partial "paige/toc" . }}
{{ partial "paige/content" . }}
{{ partial "paige/social" . }}
{{ partial "paige/toc.html" . }}
{{ partial "paige/content.html" . }}
{{ partial "paige/social.html" . }}
</article>
{{ end }}

View File

@@ -1,6 +1,6 @@
{{ define "main" }}
{{ if not .Params.paige.show_full_pages }}
{{ partial "paige/article" . }}
{{ partial "paige/article.html" . }}
{{ end }}
{{ partial "paige/pages" . }}
{{ partial "paige/pages.html" . }}
{{ end }}

View File

@@ -1,4 +1,4 @@
{{ define "main" }}
{{ partial "paige/article" . }}
{{ partial "paige/search" . }}
{{ partial "paige/article.html" . }}
{{ partial "paige/search.html" . }}
{{ end }}

View File

@@ -13,7 +13,7 @@
{{ $pages = $pages | first $limit }}
{{ end }}
{{ $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 }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
@@ -42,7 +42,7 @@
{{ end }}
{{ range $pages }}
<item>
{{ with partial "paige/func-authors" . }}
{{ with partial "paige/func-authors.html" . }}
<author>{{ . }}</author>
{{ end }}
{{ if .Content }}

View File

@@ -1,4 +1,4 @@
{{ define "main" }}
{{ partial "paige/article" . }}
{{ partial "paige/comments" . }}
{{ partial "paige/article.html" . }}
{{ partial "paige/comments.html" . }}
{{ end }}

View File

@@ -1,5 +1,5 @@
{{ define "main" }}
{{ partial "paige/article" . }}
{{ partial "paige/article.html" . }}
{{ if .Pages }}
<section>
<ul class="list-inline text-center">

View File

@@ -1,4 +1,4 @@
{{ define "main" }}
{{ partial "paige/article" . }}
{{ partial "paige/pages" . }}
{{ partial "paige/article.html" . }}
{{ partial "paige/pages.html" . }}
{{ end }}