From 7ec5faff37d4b0d2a6b6b53ef401531fa4a4a028 Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Sun, 4 Jun 2023 10:20:41 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Correctly=20display=20available?= =?UTF-8?q?=20translations=20in=20header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: #565 --- CHANGELOG.md | 4 +++- layouts/partials/translations.html | 17 ++++++++++------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 916a746f..88e63c0a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,10 +8,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Changed -- Updated Simplified Chinese (China) translateion ([#573](https://github.com/jpanther/congo/pull/573)) +- Current language is no longer displayed in language selection ([#565](https://github.com/jpanther/congo/issues/565)) +- Updated Simplified Chinese (China) translation ([#573](https://github.com/jpanther/congo/pull/573)) ### Fixed +- Language selection repeats current language on multilingual sites instead of linking to translated content ([#565](https://github.com/jpanther/congo/issues/565)) - Icon padding inconsistent when using `--minify` option to build site ([#568](https://github.com/jpanther/congo/pull/568)) - Upgrade to Mermaid v10.2.1 ([#569](https://github.com/jpanther/congo/pull/569)) diff --git a/layouts/partials/translations.html b/layouts/partials/translations.html index a9514057..893547d4 100644 --- a/layouts/partials/translations.html +++ b/layouts/partials/translations.html @@ -1,13 +1,16 @@ {{ if .IsTranslated }} + {{ $currentLang := .Page.Lang }} {{ end }}