Add func prefix to func templates

master
Will Faught 3 years ago
parent 4d84560390
commit bd156f6251

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

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

@ -12,7 +12,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-titles.html" . }}
{{ $title := partial "paige-func-title.html" . }}
{{ range .AlternativeOutputFormats }}
<link href="{{ .Permalink }}" rel="{{ .Rel }}" title="{{ $title }}" type="{{ .MediaType.Type }}">
{{ end }}

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

Loading…
Cancel
Save