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

13 lines
558 B
HTML
Raw Normal View History

2019-02-13 06:11:59 +01:00
<script src="{{ "js/prism.js" | absURL }}"></script>
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>
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 }}