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

This commit is contained in:
ZhenShuo Leo committed 2025-09-23 17:57:58 +08:00
1 parent b777d4e59e
commit c330c17215
8 files changed
+19 -19

No files matched your search

+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"