Move partials under paige directory

This commit is contained in:
Will Faught
2022-12-29 22:30:30 -08:00
parent 2340651c82
commit 2ece967314
34 changed files with 56 additions and 56 deletions

View File

@@ -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.html" . }}
<body class="d-flex flex-column">
<div class="container flex-fill">
<div class="row">
<div class="col">
{{ partial "paige-header.html" . }}
{{ partial "paige/header.html" . }}
<main>
{{ block "main" . }}{{ end }}
</main>
{{ partial "paige-footer.html" . }}
{{ partial "paige/footer.html" . }}
</div>
</div>
</div>
{{ partial "paige-script.html" . }}
{{ partial "paige/script.html" . }}
{{ if templates.Exists "partials/paige-body-last.html" }}
{{ partial "paige-body-last.html" . }}
{{ partial "paige/body-last.html" . }}
{{ end }}
</body>
</html>

View File

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

View File

@@ -1,4 +1,4 @@
{{ define "main" }}
{{ partial "paige-article.html" . }}
{{ partial "paige-search.html" . }}
{{ 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.html" . }}
{{ $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.html" . }}
{{ with partial "paige/func-authors.html" . }}
<author>{{ . }}</author>
{{ end }}
{{ if .Content }}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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.html" . }}
{{ range .AlternativeOutputFormats }}
<link href="{{ .Permalink }}" rel="{{ .Rel }}" title="{{ $title }}" type="{{ .MediaType.Type }}">
{{ end }}

View File

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

View File

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

View File

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

View File

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