fix(buymeacoffee): widget position letter case and default value

This commit is contained in:
ZhenShuo Leo
2025-07-25 04:29:34 +08:00
parent b777d4e59e
commit c330c17215
8 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{{ $coffeeIsRight := and site.Params.buymeacoffee.globalWidget (eq site.Params.buymeacoffee.globalWidgetPosition "Right") }}
{{ $coffeeIsRight := and site.Params.buymeacoffee.globalWidget (eq (lower site.Params.buymeacoffee.globalWidgetPosition) "right") }}
{{ $toTopYOffset := cond $coffeeIsRight "bottom-24" "bottom-6" }}
<div
id="scroll-to-top"