mirror of https://github.com/luizdepra/hugo-coder.git

Muqeet Malik
18.44.2024 3afaa3f1b890d368f635cffb2cf8faada12389e1
layouts/_default/baseof.html
@@ -33,7 +33,11 @@
  </script>
  {{ end }}
  {{ if .Site.IsServer }}
  {{ if .Site.Params.disableDefaultJsScripts }}
  {{ if not .Site.Params.hideColorSchemeToggle }}
  {{ errorf "Invalid configuration. Default JS scripts are disabled, but 'hideColorSchemeToggle' is false." }}
  {{end}}
  {{ else if .Site.IsServer }}
  {{ $script := resources.Get "js/coder.js" }}
  <script src="{{ $script.RelPermalink }}"></script>
  {{ else }}