portails/layouts/partials/head/script-header.html

4 lines
188 B
HTML
Raw Normal View History

2021-09-07 12:08:46 +02:00
{{ if .Site.Params.options.darkMode -}}
{{ $darkModeInit := resources.Get "js/darkmode-init.js" | js.Build | minify -}}
<script>{{ $darkModeInit.Content | safeJS }}</script>
{{ end -}}