Drop file extension from partial uses
This commit is contained in:
@@ -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 }}
|
||||
|
Reference in New Issue
Block a user