From 9cd378a2d27ad4c9cb2e46d12022e68e23f96ea7 Mon Sep 17 00:00:00 2001 From: Alex Ivanov Date: Sun, 10 Nov 2019 01:27:11 +0300 Subject: Multilang (#93) * Add i18n langs trans example * partials * Update sample site * cc of variables of config * Clean PR * revert master data --- layouts/partials/docs/language-switch.html | 14 ++++++++++++++ layouts/partials/docs/menu.html | 5 +++++ layouts/partials/docs/translation-switch.html | 14 ++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 layouts/partials/docs/language-switch.html create mode 100644 layouts/partials/docs/translation-switch.html (limited to 'layouts') diff --git a/layouts/partials/docs/language-switch.html b/layouts/partials/docs/language-switch.html new file mode 100644 index 0000000..4a84ade --- /dev/null +++ b/layouts/partials/docs/language-switch.html @@ -0,0 +1,14 @@ +{{ if .Site.IsMultiLingual }} + +{{ end }} diff --git a/layouts/partials/docs/menu.html b/layouts/partials/docs/menu.html index 6a72ac9..3d04b04 100644 --- a/layouts/partials/docs/menu.html +++ b/layouts/partials/docs/menu.html @@ -10,6 +10,11 @@ {{ end }} {{ partial "docs/inject/menu-after" . }} + +{{ if .Site.IsMultiLingual }} + {{ partial "docs/translation-switch" . }} + {{ partial "docs/language-switch" . }} +{{ end }} diff --git a/layouts/partials/docs/translation-switch.html b/layouts/partials/docs/translation-switch.html new file mode 100644 index 0000000..4ad0f1a --- /dev/null +++ b/layouts/partials/docs/translation-switch.html @@ -0,0 +1,14 @@ +{{ if .IsTranslated }} + +{{ end }} \ No newline at end of file -- cgit v1.2.3