mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 17:22:46 +00:00
Added language-direction partial
This commit is contained in:
parent
880025c350
commit
a5510f32a3
@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ $.Site.LanguageCode | default "en" }}" dir="{{ $.Site.Language.LanguageDirection | default "ltr" }}">
|
<html lang="{{ $.Site.LanguageCode | default "en" }}" {{ partial "language-direction.html" . | safeHTMLAttr }}>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||||
|
3
layouts/partials/language-direction.html
Normal file
3
layouts/partials/language-direction.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{{- if ge hugo.Version "0.67.1" -}}
|
||||||
|
dir="{{ $.Site.Language.LanguageDirection | default "ltr" }}"
|
||||||
|
{{- end -}}
|
Loading…
x
Reference in New Issue
Block a user