|
29 | 29 | x-transition:leave-end="opacity-0 translate-y-1" |
30 | 30 | @click.outside="dropdown = false" |
31 | 31 | class="absolute z-10 top-12 min-w-[16rem] bg-white rounded-md shadow-xl hidden py-2.5"> |
32 | | - <a class="{{ if .IsHome }}text-sky-600{{ else }}text-slate-500{{ end }} hover:text-sky-600 block px-5 py-2" href="{{ "/" | relLangURL }}">{{ i18n "all" }}</a> |
33 | | - {{ range site.Taxonomies.tags }} |
| 32 | + {{ range $.Site.Data.navigation.tags }} |
| 33 | + {{ $tagId := . }} |
| 34 | + {{ $tagDisplay := .display }} |
| 35 | + {{ range $taxonomyname, $taxonomy := $.Site.Taxonomies.tags }} |
| 36 | + {{ if eq $taxonomyname $tagId }} |
| 37 | + {{ $tagDisplay := default (strings.FirstUpper (replace .Page.Title "_" " ")) $tagDisplay }} |
34 | 38 | <a class="{{ if eq .Page.Permalink $.Permalink }}text-sky-600{{ else }}text-slate-500{{ end }} hover:text-sky-600 block px-5 py-2" href="{{ .Page.Permalink }}">{{ strings.FirstUpper (replace .Page.Title "_" " ") }}</a> |
| 39 | + {{ end }} |
35 | 40 | {{ end }} |
| 41 | + {{ end }} |
36 | 42 | </div> |
37 | 43 | </div> |
38 | 44 | <div class="hidden lg:flex -mt-2"> |
39 | 45 | <div class="flex flex-col"> |
40 | | - <a class="{{ if .IsHome }}text-sky-600 underline underline-offset-4 decoration-sky-600{{ else }}text-slate-500{{ end }} py-1.5 text-lg hover:text-sky-600" href="{{ "/" | relLangURL }}">{{ i18n "all" }}</a> |
41 | | - {{ range site.Taxonomies.tags }} |
42 | | - <a class="{{ if eq .Page.Permalink $.Permalink }}text-sky-600 underline underline-offset-4 decoration-sky-600{{ else }}text-slate-500{{ end }} py-1.5 text-lg hover:text-sky-600 whitespace-nowrap" href="{{ .Page.Permalink }}">{{ strings.FirstUpper (replace .Page.Title "_" " ") }}</a> |
| 46 | + {{ range $.Site.Data.navigation.tags }} |
| 47 | + {{ $tagId := .id }} |
| 48 | + {{ $tagDisplay := .display }} |
| 49 | + {{ range $taxonomyname, $taxonomy := $.Site.Taxonomies.tags }} |
| 50 | + {{ if eq $taxonomyname $tagId }} |
| 51 | + {{ $tagDisplay := default (strings.FirstUpper (replace .Page.Title "_" " ")) $tagDisplay }} |
| 52 | + <a class="{{ if eq .Page.Permalink $.Permalink }}text-sky-600 underline underline-offset-4 decoration-sky-600{{ else }}text-slate-500{{ end }} py-1.5 text-lg hover:text-sky-600 whitespace-nowrap" href="{{ .Page.Permalink }}">{{ $tagDisplay }}</a> |
| 53 | + {{ end }} |
| 54 | + {{ end }} |
43 | 55 | {{ end }} |
44 | 56 | </div> |
45 | 57 | </div> |
0 commit comments