Dont show nav item for current language

This commit is contained in:
Hanzei 2018-07-26 23:03:06 +02:00
parent 15da9ccccd
commit 54169c2cc8
No known key found for this signature in database
GPG key ID: 69A2DEFD98937BA0
2 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@
<div class="container">
<div class="section tags-list">
{{- range $key, $value:= .Data.Terms -}}
<a class="tag-cloud" href="{{ "/" | absLangURL }}{{ $.Data.Plural | urlize }}/{{ $key | urlize }}">{{ $key }}&nbsp;({{ $value.Count }})</a>
<a class="tag-cloud" href="{{ "/" | absLangURL }}{{ $.Data.Plural | urlize }}/{{ $key | urlize }}">{{ $key }}&nbsp;({{ $value.Count }})</a>
{{- end -}}
</div>
</div>

View file

@ -92,13 +92,13 @@
{{ end }}
{{ end }}
{{ if gt (len $.Site.Home.AllTranslations.ByWeight) 1 }}
{{ range $.Site.Home.AllTranslations.ByWeight }}
<a class="navbar-item" href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
{{ if ne .Language.LanguageName $.Language.LanguageName }}
<a class="navbar-item" href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
{{ end }}
{{ end }}
{{ if and .Site.Params.showRSSButton .Site.RSSLink }}
{{ if and .Site.Params.showRSSButton .Site.RSSLink }}
<a class="navbar-item" href="{{ .Site.RSSLink }}"><i class="fas fa-rss"></i></a>
{{ end }}
{{ end }}