Przeglądaj źródła

Fix HTML lang attribute (#169)

* Fix #165

* use .Site.Language.Lang instead of .Site.LanguageCode according to hugo documentation

* add contributor D_DAndrew
d-dandrew 6 lat temu
rodzic
commit
b535058204
2 zmienionych plików z 2 dodań i 1 usunięć
  1. 1 0
      CONTRIBUTORS.md
  2. 1 1
      layouts/_default/baseof.html

+ 1 - 0
CONTRIBUTORS.md

@@ -34,3 +34,4 @@
 - [Paul Lettington](https://github.com/plett)
 - [Thomas Vochten](https://github.com/thomasvochten)
 - [Caspar Krieger](https://www.asparck.com)
+- [D_DAndrew](https://d-dandrew.github.io)

+ 1 - 1
layouts/_default/baseof.html

@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html lang="{{ .Site.LanguageCode }}">
+<html lang="{{ .Site.Language.Lang }}">
 
   <head>
     <meta charset="utf-8">