mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
8 lines
397 B
HTML
8 lines
397 B
HTML
|
{{ if .Site.Params.options.darkMode -}}
|
||
|
{{ $darkModeInit := resources.Get "js/darkmode-init.js" | js.Build | minify -}}
|
||
|
<script>{{ $darkModeInit.Content | safeJS }}</script>
|
||
|
{{ end -}}
|
||
|
{{- if and (.Site.Params.alert) (.Site.Params.alertDismissable) -}}
|
||
|
{{ $alertInit := resources.Get "js/alert-init.js" | js.Build | minify -}}
|
||
|
<script>{{ $alertInit.Content | safeJS }}</script>
|
||
|
{{- end -}}
|