|
30 | 30 | <div x-show="isProductsDropdownOpen" @click.outside="isProductsDropdownOpen = false" x-cloak class="absolute mt-6 py-2 w-64 bg-white rounded shadow-md z-50"> |
31 | 31 | {{- range .Site.Data.nav.ProductsRelLinks }} |
32 | 32 | {{- with $.Site.GetPage . }} |
33 | | - <a href="{{ .RelPermalink }}" class="block px-4 py-2 text-gray-800 hover:bg-secondary hover:text-white hover:no-underline">{{ cond (isset .Params "navtitle") .Params.Navtitle .Title }}</a> |
| 33 | + <a href="{{ .RelPermalink }}" class="block px-4 py-2 text-gray-800 hover:bg-secondary hover:text-white hover:no-underline plausible-event-name=nav-{{ replaceRE "^.*/([^/]+)/?$" "$1" .RelPermalink }}">{{ cond (isset .Params "navtitle") .Params.Navtitle .Title }}</a> |
34 | 34 | {{- end}} |
35 | 35 | {{- end }} |
36 | 36 | </div> |
|
40 | 40 | {{- with $.Site.GetPage . }} |
41 | 41 | {{- $borderColor := cond (hasPrefix $currentRelPermalink .RelPermalink) $textColor "transparent" }} |
42 | 42 | <li class="flex items-center mx-2 border-b-2 border-{{ $borderColor }} hover:border-{{ $textColor }}"> |
43 | | - <a class="p-2 hover:no-underline" href="{{ .RelPermalink }}">{{ cond (isset .Params "navtitle") .Params.Navtitle .Title }}</a> |
| 43 | + <a class="p-2 hover:no-underline plausible-event-name=nav-{{ replaceRE "^.*/([^/]+)/?$" "$1" .RelPermalink }}" href="{{ .RelPermalink }}">{{ cond (isset .Params "navtitle") .Params.Navtitle .Title }}</a> |
44 | 44 | </li> |
45 | 45 | {{- end }} |
46 | 46 | {{- end }} |
|
53 | 53 | <div x-show="isSupportUsDropdownOpen" @click.outside="isSupportUsDropdownOpen = false" x-cloak class="absolute mt-6 py-2 w-64 bg-white rounded shadow-md z-50"> |
54 | 54 | {{- range .Site.Data.nav.SupportUsRelLinks }} |
55 | 55 | {{- with $.Site.GetPage . }} |
56 | | - <a href="{{ .RelPermalink }}" class="block px-4 py-2 text-gray-800 hover:bg-secondary hover:text-white hover:no-underline">{{ cond (isset .Params "navtitle") .Params.Navtitle .Title }}</a> |
| 56 | + <a href="{{ .RelPermalink }}" class="block px-4 py-2 text-gray-800 hover:bg-secondary hover:text-white hover:no-underline plausible-event-name=nav-{{ replaceRE "^.*/([^/]+)/?$" "$1" .RelPermalink }}">{{ cond (isset .Params "navtitle") .Params.Navtitle .Title }}</a> |
57 | 57 | {{- end}} |
58 | 58 | {{- end }} |
59 | 59 | </div> |
|
68 | 68 | <div x-show="isLearnMoreDropdownOpen" @click.outside="isLearnMoreDropdownOpen = false" x-cloak class="absolute mt-6 py-2 w-96 bg-white rounded shadow-md z-50"> |
69 | 69 | {{- range .Site.Data.nav.LearnMoreRelLinks }} |
70 | 70 | {{- with $.Site.GetPage . }} |
71 | | - <a href="{{ .RelPermalink }}" class="block px-4 py-2 text-gray-800 hover:bg-secondary hover:text-white hover:no-underline">{{ cond (isset .Params "navtitle") .Params.Navtitle .Title }}</a> |
| 71 | + <a href="{{ .RelPermalink }}" class="block px-4 py-2 text-gray-800 hover:bg-secondary hover:text-white hover:no-underline plausible-event-name=nav-{{ replaceRE "^.*/([^/]+)/?$" "$1" .RelPermalink }}">{{ cond (isset .Params "navtitle") .Params.Navtitle .Title }}</a> |
72 | 72 | {{- end}} |
73 | 73 | {{- end }} |
74 | 74 | </div> |
|
106 | 106 | <div class="relative"> |
107 | 107 | <div x-show="isLangDropdownOpen" @click.outside="isLangDropdownOpen = false" x-cloak class="absolute right-0 mt-6 py-2 w-48 bg-white rounded shadow-md z-50"> |
108 | 108 | {{- range .Translations }} |
109 | | - <a :href="'{{ .RelPermalink }}' + (window.location.search ?? '')" lang="{{ .Lang }}" class="block px-4 py-2 text-gray-800 hover:bg-secondary hover:text-white hover:no-underline">{{ .Language.LanguageName }}</a> |
| 109 | + <a :href="'{{ .RelPermalink }}' + (window.location.search ?? '')" lang="{{ .Lang }}" class="block px-4 py-2 text-gray-800 hover:bg-secondary hover:text-white hover:no-underline plausible-event-name=nav-lang-{{ .Lang }}">{{ .Language.LanguageName }}</a> |
110 | 110 | {{- end }} |
111 | 111 | </div> |
112 | 112 | </div> |
|
123 | 123 | <div class="mt-1"> |
124 | 124 | {{- range .Site.Data.nav.ProductsRelLinks }} |
125 | 125 | {{- with $.Site.GetPage . }} |
126 | | - <a class="block py-2 mx-2 hover:text-secondary hover:no-underline" href="{{ .RelPermalink }}">{{ cond (isset .Params "navtitle") .Params.Navtitle .Title }}</a> |
| 126 | + <a class="block py-2 mx-2 hover:text-secondary hover:no-underline plausible-event-name=nav-{{ replaceRE "^.*/([^/]+)/?$" "$1" .RelPermalink }}" href="{{ .RelPermalink }}">{{ cond (isset .Params "navtitle") .Params.Navtitle .Title }}</a> |
127 | 127 | {{- end }} |
128 | 128 | {{- end }} |
129 | 129 | </div> |
|
132 | 132 |
|
133 | 133 | {{- range .Site.Data.nav.RelLinks }} |
134 | 134 | {{- with $.Site.GetPage . }} |
135 | | - <a class="block py-2 mx-2 hover:text-secondary hover:no-underline" href="{{ .RelPermalink }}">{{ cond (isset .Params "navtitle") .Params.Navtitle .Title }}</a> |
| 135 | + <a class="block py-2 mx-2 hover:text-secondary hover:no-underline plausible-event-name=nav-{{ replaceRE "^.*/([^/]+)/?$" "$1" .RelPermalink }}" href="{{ .RelPermalink }}">{{ cond (isset .Params "navtitle") .Params.Navtitle .Title }}</a> |
136 | 136 | {{- end }} |
137 | 137 | {{- end }} |
138 | 138 |
|
|
144 | 144 | <div class="mt-1"> |
145 | 145 | {{- range .Site.Data.nav.SupportUsRelLinks }} |
146 | 146 | {{- with $.Site.GetPage . }} |
147 | | - <a class="block py-2 mx-2 hover:text-secondary hover:no-underline" href="{{ .RelPermalink }}">{{ cond (isset .Params "navtitle") .Params.Navtitle .Title }}</a> |
| 147 | + <a class="block py-2 mx-2 hover:text-secondary hover:no-underline plausible-event-name=nav-{{ replaceRE "^.*/([^/]+)/?$" "$1" .RelPermalink }}" href="{{ .RelPermalink }}">{{ cond (isset .Params "navtitle") .Params.Navtitle .Title }}</a> |
148 | 148 | {{- end }} |
149 | 149 | {{- end }} |
150 | 150 | </div> |
|
157 | 157 | <div class="mt-1"> |
158 | 158 | {{- range .Site.Data.nav.LearnMoreRelLinks }} |
159 | 159 | {{- with $.Site.GetPage . }} |
160 | | - <a class="block py-2 mx-2 hover:text-secondary hover:no-underline" href="{{ .RelPermalink }}">{{ cond (isset .Params "navtitle") .Params.Navtitle .Title }}</a> |
| 160 | + <a class="block py-2 mx-2 hover:text-secondary hover:no-underline plausible-event-name=nav-{{ replaceRE "^.*/([^/]+)/?$" "$1" .RelPermalink }}" href="{{ .RelPermalink }}">{{ cond (isset .Params "navtitle") .Params.Navtitle .Title }}</a> |
161 | 161 | {{- end }} |
162 | 162 | {{- end }} |
163 | 163 | </div> |
|
169 | 169 | </div> |
170 | 170 | <div class="mt-1"> |
171 | 171 | {{ range .Translations }} |
172 | | - <a :href="'{{ .RelPermalink }}' + (window.location.search ?? '')" lang="{{ .Lang }}" class="block px-2 py-1 hover:text-secondary hover:no-underline">{{ .Language.LanguageName }}</a> |
| 172 | + <a :href="'{{ .RelPermalink }}' + (window.location.search ?? '')" lang="{{ .Lang }}" class="block px-2 py-1 hover:text-secondary hover:no-underline plausible-event-name=nav-lang-{{ .Lang }}">{{ .Language.LanguageName }}</a> |
173 | 173 | {{ end }} |
174 | 174 | </div> |
175 | 175 |
|
176 | 176 | <hr class="border-primary my-2"/> |
177 | 177 |
|
178 | | - <a class="block p-2 hover:text-secondary hover:no-underline" href="https://github.com/cryptomator" target="_blank" rel="noopener"> |
| 178 | + <a class="block p-2 hover:text-secondary hover:no-underline plausible-event-name=nav-github" href="https://github.com/cryptomator" target="_blank" rel="noopener"> |
179 | 179 | <i class="fab fa-github fa-fw"></i> |
180 | 180 | <span>{{ i18n "nav_github" . }}</span> |
181 | 181 | </a> |
|
0 commit comments