Add func prefix to func templates

master
Will Faught 3 years ago
parent 4d84560390
commit bd156f6251

@ -13,7 +13,7 @@
{{ $pages = $pages | first $limit }} {{ $pages = $pages | first $limit }}
{{ end }} {{ end }}
{{ $pages = where $pages "Params.paige.hide_rss" "ne" true }} {{ $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 }} {{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel> <channel>
@ -42,7 +42,7 @@
{{ end }} {{ end }}
{{ range $pages }} {{ range $pages }}
<item> <item>
{{ with partial "paige-authors.html" . }} {{ with partial "paige-func-authors.html" . }}
<author>{{ . }}</author> <author>{{ . }}</author>
{{ end }} {{ end }}
{{ if .Content }} {{ if .Content }}

@ -1,6 +1,6 @@
<head> <head>
{{ partial "paige-meta.html" . }} {{ partial "paige-meta.html" . }}
<title>{{ partial "paige-titles.html" . }}</title> <title>{{ partial "paige-func-title.html" . }}</title>
{{ partial "paige-link.html" . }} {{ partial "paige-link.html" . }}
{{ partial "paige-style.html" . }} {{ partial "paige-style.html" . }}
{{ if templates.Exists "partials/paige-head-last.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"> <link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/katex.min.css" integrity="sha384-Juol1FqnotbkyZUT5Z7gUPjQ9gzlwCENvUZTpQBAPxtusdwFLRy382PSDx5UUJ4/" rel="stylesheet">
{{ end }} {{ end }}
{{ if .AlternativeOutputFormats }} {{ if .AlternativeOutputFormats }}
{{ $title := partial "paige-titles.html" . }} {{ $title := partial "paige-func-title.html" . }}
{{ range .AlternativeOutputFormats }} {{ range .AlternativeOutputFormats }}
<link href="{{ .Permalink }}" rel="{{ .Rel }}" title="{{ $title }}" type="{{ .MediaType.Type }}"> <link href="{{ .Permalink }}" rel="{{ .Rel }}" title="{{ $title }}" type="{{ .MediaType.Type }}">
{{ end }} {{ end }}

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

Loading…
Cancel
Save