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

View File

@@ -48,9 +48,9 @@
src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js"
data-id="{{ site.Params.buymeacoffee.identifier }}"
data-description="Support me on Buy me a coffee!"
data-message="{{ site.Params.buymeacoffee.globalWidgetMessage | default "" }}"
data-color="{{ site.Params.buymeacoffee.globalWidgetColor | default "#FFDD00" }}"
data-position="{{ site.Params.buymeacoffee.globalWidgetPosition | default "Left" }}"
{{ with site.Params.buymeacoffee.globalWidgetMessage }}data-message="{{ . }}"{{ end }}
{{ with site.Params.buymeacoffee.globalWidgetColor | default `#FFDD00` }}data-color="{{ . }}"{{ end }}
{{ with site.Params.buymeacoffee.globalWidgetPosition }}data-position="{{ . }}"{{ end }}
data-x_margin="18"
data-y_margin="18"></script>
{{ end }}