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

17 lines
648 B
HTML
Raw 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" . }}
<script src="{{ $domScripts.Permalink }}"></script>
<script src="{{ "js/prism.js" | absURL }}"></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 }}
<script src="{{ . | absURL }}"></script>
{{ end }}