mirror of https://github.com/onweru/compose.git

weru
21.16.2023 7e4b5c884b464b283ffe7d14ba8b8df0ffdf8645
if translations absent, cache js bundle  #101

Signed-off-by: weru <fromweru@gmail.com>
1 files modified
10 ■■■■■ changed files
layouts/_default/baseof.html 10 ●●●●● patch | view | raw | blame | history
layouts/_default/baseof.html
@@ -1,5 +1,9 @@
{{ $config := site.Params }}
{{ $context := . }}
<!doctype html>
<html lang="{{ site.Language.Lang }}"{{ with site.Params.enableDarkMode }} class="dark"{{ end }}>
<html lang="{{ site.Language.Lang }}"{{ with $config.enableDarkMode }} class="dark"{{ end }}{{ with $config.defaultLightingMode }}
  data-mode="{{ . }}"
{{ end }}>
<head>
  {{- partial "head" . }}
</head>
@@ -34,7 +38,11 @@
  {{ end }}
  {{- partialCached "footer" . -}}
  {{- partialCached "sprites" . -}}
  {{- with .Translations }}
    {{- partial "scripts/bundle" $context -}}
  {{- else }}
  {{- partialCached "scripts/bundle" . -}}
  {{- end }}
  {{- partial "scripts/other" . -}}
</body>
</html>