summaryrefslogtreecommitdiffstats
path: root/layouts/_default/baseof.html
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-28 15:15:11 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-28 15:15:11 +0200
commit6b2b8e81e631a1fec44bdb94d5177cf5c56287c9 (patch)
tree994d425dd7ea4e4d57986e64fefd712de8011c03 /layouts/_default/baseof.html
parent512e94b28b243105e053c1090f56ac31846bc7cf (diff)
downloadgohugo-theme-ed-6b2b8e81e631a1fec44bdb94d5177cf5c56287c9.tar.gz
Added multilanguage support
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r--layouts/_default/baseof.html13
1 files changed, 8 insertions, 5 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 355f674..e05a918 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,21 +1,24 @@
<!DOCTYPE html>
<html lang="{{ site.LanguageCode | default site.Language.Lang }}" {{- with partialCached "func/GetLanguageDirection" "GetLanguageDirection" }} dir="{{ . }}" {{- end }} prefix="og: http://ogp.me/ns#">
- {{- partial "head.html" . -}}
+ {{ partial "head.html" . }}
<body class="theme-base-{{ site.Params.colorScheme }}">
- {{ if .Params.toc }}{{ partial "sidebar-toc.html" . }}{{ else }}{{ partial "sidebar.html" . }}{{ end }}
+ {{ if .Params.toc }}
+ {{ partial "sidebar-toc.html" . }}
+ {{ else }}
+ {{ partial "sidebar.html" . }}
+ {{ end }}
<div class="wrap">
<header class="masthead">
<div class="container">
<h3 class="masthead-title">
- {{/* TODO: Translate titlle */}}
- <a href="{{ site.Home.RelPermalink }}" title="Home">{{ site.Title }}</a>
+ <a href="{{ site.Home.RelPermalink }}" title="{{ i18n "home" }}">{{ site.Title }}</a>
<br><small>{{ site.Params.tagline }}</small>
</h3>
</div>
</header>
<main class="container content" id="main" data-type="{{ .Type }}">
- {{- block "main" . }}{{- end }}
+ {{ block "main" . }}{{ end }}
</main>
</div>