fix: hide back-to-top button by default in widgets

This commit is contained in:
Cell
2025-11-19 14:26:31 +08:00
parent 3045374786
commit c8223a756b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{{- hugo.Store.Set "version" "v0.4.0-alpha.2" -}}
{{- hugo.Store.Set "version" "v0.4.0-alpha.3-20251119062632-30453747" -}}
{{- .Store.Set "this" dict -}}
{{- partial "init/detection-env.html" . -}}
+1 -1
View File
@@ -6,7 +6,7 @@
<div class="fixed-buttons">
{{- /* back to top button */ -}}
{{- if $backToTop.enable -}}
<div class="fixed-button back-to-top animate__faster" role="button" aria-label="{{ T `baseof.backToTop` }}">
<div class="fixed-button back-to-top animate__faster d-none" role="button" aria-label="{{ T `baseof.backToTop` }}">
{{- dict "Class" "fa-solid fa-arrow-up fa-fw" | partial "plugin/icon.html" -}}
{{- if $backToTop.scrollpercent -}}
<svg viewBox="0 0 100 100">