mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-14 00:59:43 +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 }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if gt (len $.Site.Home.AllTranslations.ByWeight) 1 }}
|
|
||||||
{{ range $.Site.Home.AllTranslations.ByWeight }}
|
{{ range $.Site.Home.AllTranslations.ByWeight }}
|
||||||
|
{{ if ne .Language.LanguageName $.Language.LanguageName }}
|
||||||
<a class="navbar-item" href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
|
<a class="navbar-item" href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue