🌐 Add language switcher to header

This commit is contained in:
James Panther
2022-01-11 12:00:27 +11:00
parent fe90990e10
commit 9c8601102c
8 changed files with 23 additions and 47 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
<!DOCTYPE html>
<html
lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en{{ end }}"
lang="{{ with .Site.Language.Params.htmlCode | default (.Site.LanguageCode | default "en") }}
{{- . -}}
{{ end }}"
{{ if .Site.Params.darkMode | default false }}class="dark"{{ end }}
>
{{- partial "head.html" . -}}