diff options
| author | Eltrac <hi@guhub.cn> | 2025-07-27 09:56:57 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-07-27 09:56:57 +0800 |
| commit | f43a1c8a171b0535ecadd0ecc926073aa9873802 (patch) | |
| tree | 47104e15888ee43255ba1a229b6d699247d87dbc /layouts | |
| parent | b64e0b67a1a425bb79055c1e42b12f5807836d66 (diff) | |
feat: add tooltip to stats page link icon
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_partials/home/home-nav.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/_partials/home/home-nav.html b/layouts/_partials/home/home-nav.html index 2d8e539d..24d75221 100644 --- a/layouts/_partials/home/home-nav.html +++ b/layouts/_partials/home/home-nav.html @@ -24,7 +24,8 @@ </li> <li class="absolute right-0 dark:invert"> <a href="{{ .Site.LanguagePrefix }}/stats" - class="opacity-50 transition-opacity duration-300 hover:opacity-100 + data-tooltip="{{ T "statsTooltip" }}" + class="block opacity-50 transition-opacity duration-300 hover:opacity-100 {{ if eq "/stats/" $.Page.RelPermalink }} opacity-100 font-bolder{{ end }}" data-umami-event="📈 Click stats page link"> <img src="/img/graph.svg" class="opacity-50 h-8 w-8" /> |
