hugo-WonderMod/layouts/_default/baseof.html
Mehdy Khoshnoody a153a7cc6f
Add RTL support for multilingual mode (#47)
Usage: 
in site config:
languages:
  ar:
    languagedirection: rtl
    title: مدونتي
    weight: 2

* ref: https://gohugo.io/content-management/multilingual/#configure-languages
2020-10-19 14:47:23 +05:30

18 lines
574 B
HTML

<!DOCTYPE html>
<html lang="{{ .Site.Language }}" class="direction-{{ .Language.LanguageDirection | default "ltr" }}">
<head>
{{- partial "head.html" . }}
</head>
<body class="{{ if (and (eq .Kind `page` ) (ne .Layout `archives`)) }}single{{ else }}list
{{- if .IsHome }} home{{ end }}{{ end }}{{- if eq $.Site.Params.defaultTheme `dark` }} dark{{ end }}" id="top">
{{- partialCached "header.html" . .Page}}
<main class="main">
{{- block "main" . }}
{{- end }}
</main>
{{- partialCached "footer.html" . .Type }}
</body>
</html>