mirror of https://github.com/jpanther/congo.git
parent
d2a1b70ae2
commit
7ec5faff37
|
@ -8,10 +8,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
|
|
||||||
### Changed
|
### 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
|
### 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))
|
- 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))
|
- Upgrade to Mermaid v10.2.1 ([#569](https://github.com/jpanther/congo/pull/569))
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,16 @@
|
||||||
{{ if .IsTranslated }}
|
{{ if .IsTranslated }}
|
||||||
|
{{ $currentLang := .Page.Lang }}
|
||||||
<ul class="flex list-none flex-row">
|
<ul class="flex list-none flex-row">
|
||||||
{{ range .AllTranslations }}
|
{{ range .AllTranslations }}
|
||||||
|
{{ if ne $currentLang .Lang }}
|
||||||
<li class="ml-2">
|
<li class="ml-2">
|
||||||
<a
|
<a
|
||||||
href="{{ .RelPermalink }}"
|
href="{{ .RelPermalink }}"
|
||||||
class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
|
class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
|
||||||
>{{ site.Params.displayName | emojify }}</a
|
>{{ .Site.Params.displayName | emojify }}</a
|
||||||
>
|
>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue