Theme Files Update

This commit is contained in:
GitHub Action 2023-10-15 12:13:22 +00:00
parent e27a5df3b4
commit 96614011ff
5 changed files with 32 additions and 14 deletions

View file

@ -17,6 +17,9 @@
{{ end -}}
{{ $style := resources.Get "scss/style.scss" | resources.ExecuteAsTemplate "css/style.css" . | toCSS | minify | fingerprint -}}
<link rel="stylesheet" href="{{ $style.Permalink }}" {{ printf "integrity=%q" $style.Data.Integrity | safeHTMLAttr }} crossorigin="anonymous">
{{- range .Params.custom_css }}
<link rel="stylesheet" href="{{ . | absURL }}">
{{- end }}
{{- block "head" . -}}{{- end }}
{{- if templates.Exists "partials/extra-head.html" -}}
{{ partial "extra-head.html" . }}
@ -37,6 +40,9 @@
{{ $script := $main | minify | fingerprint -}}
<script async src="{{ $script.Permalink }}" {{ printf "integrity=%q" $script.Data.Integrity | safeHTMLAttr }} crossorigin="anonymous"></script>
{{ end }}
{{ range .Params.custom_js -}}
<script type="text/javascript" src="{{ . | absURL }}"></script>
{{- end }}
{{ partial "mathjax.html" . }}
{{- partial "analytics.html" . }}
{{- if templates.Exists "partials/extra-foot.html" -}}