Add missing .html extension to partials
This commit is contained in:
@@ -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>
|
||||
|
@@ -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 }}
|
||||
|
@@ -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 }}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{{ define "main" }}
|
||||
{{ partial "paige/article" . }}
|
||||
{{ partial "paige/search" . }}
|
||||
{{ partial "paige/article.html" . }}
|
||||
{{ partial "paige/search.html" . }}
|
||||
{{ end }}
|
||||
|
@@ -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 }}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{{ define "main" }}
|
||||
{{ partial "paige/article" . }}
|
||||
{{ partial "paige/comments" . }}
|
||||
{{ partial "paige/article.html" . }}
|
||||
{{ partial "paige/comments.html" . }}
|
||||
{{ end }}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{{ define "main" }}
|
||||
{{ partial "paige/article" . }}
|
||||
{{ partial "paige/article.html" . }}
|
||||
{{ if .Pages }}
|
||||
<section>
|
||||
<ul class="list-inline text-center">
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{{ define "main" }}
|
||||
{{ partial "paige/article" . }}
|
||||
{{ partial "paige/pages" . }}
|
||||
{{ partial "paige/article.html" . }}
|
||||
{{ partial "paige/pages.html" . }}
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user