mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-12-22 22:52:54 +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
|
@ -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 }} ({{ $value.Count }})</a>
|
||||
<a class="tag-cloud" href="{{ "/" | absLangURL }}{{ $.Data.Plural | urlize }}/{{ $key | urlize }}">{{ $key }} ({{ $value.Count }})</a>
|
||||
{{- end -}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue