infidel-cupper-theme/layouts/partials/script.html

22 lines
886 B
HTML
Raw Permalink Normal View History

2022-04-10 04:20:41 -04:00
{{ $templateDomScripts := resources.Get "js/template-dom-scripts.js" }}
{{ $domScripts := $templateDomScripts | resources.ExecuteAsTemplate "js/dom-scripts.js" . }}
<script src="{{ $domScripts.RelPermalink }}"></script>
<script src="{{ "js/prism.js" | relURL }}"></script>
{{ if site.Params.search }}
{{ $searchJs := resources.Get "js/search.js" | fingerprint }}
<script src="{{ $searchJs.RelPermalink }}"></script>
{{ $searchCss := resources.Get "css/search.css" | fingerprint }}
<link rel="stylesheet" href="{{ $searchCss.RelPermalink }}"></link>
{{ end }}
{{ range .Site.Params.customJs }}
<script src="{{ . | relURL }}"></script>
{{ end }}
2022-04-10 04:46:14 -04:00
<!-- Infidel Customs -->
{{ if and (.Site.Params.plsDomain) (.Site.Params.plsUrl) }}
<script defer data-event="/api/event" data-domain="{{.Site.Params.plsDomain}}" src="{{.Site.Params.plsUrl | relURL}}"></script>
{{ end }}