Rename script.html to tag-script.html

master
Will Faught 12 months ago
parent 580f096523
commit 9811719532

@ -1,10 +1,10 @@
{{ $page := . }} {{ $page := . }}
{{ partial "paige/script.html" (dict "page" $page "src" "js/paige/bootstrap/bootstrap.bundle.js") }} {{ partial "paige/tag-script.html" (dict "page" $page "src" "js/paige/bootstrap/bootstrap.bundle.js") }}
{{ if $page.Param "paige.math" }} {{ if $page.Param "paige.math" }}
{{ partial "paige/script.html" (dict "page" $page "src" "js/paige/katex/katex.min.js") }} {{ partial "paige/tag-script.html" (dict "page" $page "src" "js/paige/katex/katex.min.js") }}
{{ partial "paige/script.html" (dict "onload" "renderMathInElement(document.body);" "page" $page "src" "js/paige/katex/auto-render.min.js") }} {{ partial "paige/tag-script.html" (dict "onload" "renderMathInElement(document.body);" "page" $page "src" "js/paige/katex/auto-render.min.js") }}
{{ end }} {{ end }}
{{ partial "paige/analytics.html" $page }} {{ partial "paige/analytics.html" $page }}

@ -10,7 +10,7 @@
{{ $type := $params.type }} {{ $type := $params.type }}
{{ if not $src }} {{ if not $src }}
{{ errorf "layouts/partials/paige/script.html: no src" }} {{ errorf "layouts/partials/paige/tag-script.html: no src" }}
{{ end }} {{ end }}
{{ with partial "paige/resource.html" (dict "page" $page "url" $src) }} {{ with partial "paige/resource.html" (dict "page" $page "url" $src) }}
Loading…
Cancel
Save