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 @@ + \ No newline at end of file diff --git a/static/css/style.css b/static/css/style.css index d83f3a0..43ab596 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -349,6 +349,16 @@ footer { font-size: 16px; } +ul.language-select { + padding-left: 0; + list-style: none; + display: flex; +} + +ul.language-select > li { + margin-right: 1em; +} + /* Media Queries */ @media (max-width: 840px) {