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

17 lines
651 B
HTML
Raw Permalink Normal View History

2020-06-03 04:14:46 +02:00
{{ $templateDomScripts := resources.Get "js/template-dom-scripts.js" }}
{{ $domScripts := $templateDomScripts | resources.ExecuteAsTemplate "js/dom-scripts.js" . }}
2020-11-25 03:51:01 +01:00
<script src="{{ $domScripts.RelPermalink }}"></script>
2020-11-25 03:51:01 +01:00
<script src="{{ "js/prism.js" | relURL }}"></script>
2020-06-21 05:16:24 +02:00
{{ 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 }}
2020-11-17 03:32:11 +01:00
{{ range .Site.Params.customJs }}
2020-11-25 03:51:01 +01:00
<script src="{{ . | relURL }}"></script>
2020-11-17 03:32:11 +01:00
{{ end }}