Drop file extension from partial uses

master
Will Faught 3 years ago
parent 2ece967314
commit 887be3eb42

@ -2,22 +2,22 @@
{{ $rtl := eq .Language.LanguageDirection "rtl" }}
{{ $lang := .Site.LanguageCode | default .Site.Language.Lang }}
<html{{ if $rtl }} dir="rtl"{{ end }}{{ with $lang }} lang="{{ . }}"{{ end }}>
{{ partial "paige/head.html" . }}
{{ partial "paige/head" . }}
<body class="d-flex flex-column">
<div class="container flex-fill">
<div class="row">
<div class="col">
{{ partial "paige/header.html" . }}
{{ partial "paige/header" . }}
<main>
{{ block "main" . }}{{ end }}
</main>
{{ partial "paige/footer.html" . }}
{{ partial "paige/footer" . }}
</div>
</div>
</div>
{{ partial "paige/script.html" . }}
{{ partial "paige/script" . }}
{{ if templates.Exists "partials/paige-body-last.html" }}
{{ partial "paige/body-last.html" . }}
{{ partial "paige/body-last" . }}
{{ end }}
</body>
</html>

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

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

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

@ -13,7 +13,7 @@
{{ $pages = $pages | first $limit }}
{{ end }}
{{ $pages = where $pages "Params.paige.hide_rss" "ne" true }}
{{ $title := partial "paige/func-title.html" . }}
{{ $title := partial "paige/func-title" . }}
{{ 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.html" . }}
{{ with partial "paige/func-authors" . }}
<author>{{ . }}</author>
{{ end }}
{{ if .Content }}

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

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

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

@ -1,5 +1,5 @@
<article>
{{ partial "paige/metadata.html" . }}
{{ partial "paige/toc.html" . }}
{{ partial "paige/content.html" . }}
{{ partial "paige/metadata" . }}
{{ partial "paige/toc" . }}
{{ partial "paige/content" . }}
</article>

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

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

@ -30,7 +30,7 @@
<link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/katex.min.css" integrity="sha384-Juol1FqnotbkyZUT5Z7gUPjQ9gzlwCENvUZTpQBAPxtusdwFLRy382PSDx5UUJ4/" rel="stylesheet">
{{ end }}
{{ if .AlternativeOutputFormats }}
{{ $title := partial "paige/func-title.html" . }}
{{ $title := partial "paige/func-title" . }}
{{ range .AlternativeOutputFormats }}
<link href="{{ .Permalink }}" rel="{{ .Rel }}" title="{{ $title }}" type="{{ .MediaType.Type }}">
{{ end }}

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

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

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

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

Loading…
Cancel
Save