diff --git a/hugo.toml b/hugo.toml index e6de93db..881c6533 100644 --- a/hugo.toml +++ b/hugo.toml @@ -211,8 +211,9 @@ hasCJKLanguage = true # ---------------------------------------------------------------------------- [params.reward] enable = true - wechat = "/image/reward/wechat.jpg" - alipay = "/image/reward/alipay.jpg" + wechat = "/image/reward/new.png" + # alipay = "/image/reward/alipay.jpg" + # qq = "/image/reward/reward.png" # ---------------------------------------------------------------------------- # 样式定制 (Style Customization) diff --git a/themes/Ying/assets/css/main.css b/themes/Ying/assets/css/main.css index 1df0554e..e983da32 100644 --- a/themes/Ying/assets/css/main.css +++ b/themes/Ying/assets/css/main.css @@ -4796,7 +4796,8 @@ html[data-theme="light"] .atk-loading-spinner svg circle { border-radius: 24px; position: relative; max-width: 90%; - width: 480px; + width: fit-content; + min-width: 320px; transform: scale(0.95) translateY(10px); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); @@ -4882,7 +4883,7 @@ html[data-theme="light"] .atk-loading-spinner svg circle { border-radius: 16px; overflow: hidden; padding: 10px; - border: 1px solid rgba(0,0,0,0.05); + /* border: 1px solid rgba(0,0,0,0.05); */ transition: transform 0.3s ease; } diff --git a/themes/Ying/layouts/_default/single.html b/themes/Ying/layouts/_default/single.html index 8e9a1af5..8a5e09ce 100644 --- a/themes/Ying/layouts/_default/single.html +++ b/themes/Ying/layouts/_default/single.html @@ -37,23 +37,42 @@
-

感谢支持小站

+

请作者喝杯咖啡,鼓励一下吧!

- {{ with .Site.Params.reward.wechat }} -
-
- 微信打赏 + {{ if .Site.Params.reward.items }} + {{ range .Site.Params.reward.items }} +
+
+ {{ .name }}打赏 +
+ {{ .name }}
- 微信 -
- {{ end }} - {{ with .Site.Params.reward.alipay }} -
-
- 支付宝打赏 + {{ end }} + {{ else }} + {{ with .Site.Params.reward.wechat }} +
+
+ 微信打赏 +
+ 微信
- 支付宝 -
+ {{ end }} + {{ with .Site.Params.reward.alipay }} +
+
+ 支付宝打赏 +
+ 支付宝 +
+ {{ end }} + {{ with .Site.Params.reward.qq }} +
+
+ QQ打赏 +
+ QQ +
+ {{ end }} {{ end }}
diff --git a/themes/Ying/static/image/reward/new.png b/themes/Ying/static/image/reward/new.png new file mode 100644 index 00000000..9f42e3a7 Binary files /dev/null and b/themes/Ying/static/image/reward/new.png differ diff --git a/themes/Ying/static/image/reward/reward.png b/themes/Ying/static/image/reward/reward.png new file mode 100644 index 00000000..eeb2b792 Binary files /dev/null and b/themes/Ying/static/image/reward/reward.png differ