diff --git a/exampleSiteMultilingual/config.toml b/exampleSiteMultilingual/config.toml index 491996e..9797b96 100644 --- a/exampleSiteMultilingual/config.toml +++ b/exampleSiteMultilingual/config.toml @@ -16,6 +16,7 @@ googleAnalytics = "" description = "Anubis is a simple minimalist theme for Hugo blog engine." [languages.en] + languageName = "English" [[menu.main]] identifier = "about" @@ -35,6 +36,9 @@ googleAnalytics = "" url = "/posts/" weight = 3 +[languages.pl] + languageName = "Polski" + [[languages.pl.menu.main]] identifier = "about" name = "O Hugo" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index fb4c3dd..9f295e8 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -18,6 +18,11 @@ diff --git a/layouts/partials/languageSelect.html b/layouts/partials/languageSelect.html new file mode 100644 index 0000000..7e2e848 --- /dev/null +++ b/layouts/partials/languageSelect.html @@ -0,0 +1,5 @@ +