mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-13 00:39:45 +00:00
Dont show nav item for current language
This commit is contained in:
parent
15da9ccccd
commit
54169c2cc8
2 changed files with 4 additions and 4 deletions
|
@ -92,8 +92,8 @@
|
|||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if gt (len $.Site.Home.AllTranslations.ByWeight) 1 }}
|
||||
{{ range $.Site.Home.AllTranslations.ByWeight }}
|
||||
{{ if ne .Language.LanguageName $.Language.LanguageName }}
|
||||
<a class="navbar-item" href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue