From fce830bda91550b88c0b40cf71d032ec011a3382 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Thu, 25 Jul 2024 16:29:42 +0800 Subject: [PATCH] =?UTF-8?q?Feat:=20=E9=80=9A=E8=BF=87=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E7=AE=A1=E7=90=86=E7=9F=A5=E8=AF=86=E6=98=9F?= =?UTF-8?q?=E7=90=83=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/css/_custom.scss | 6 ++++++ assets/images/zsxq.webp | Bin 0 -> 5836 bytes config/_default/params.toml | 6 ++++++ content/en/community/index.md | 6 ++++-- content/zh-cn/community/index.md | 6 ++++-- layouts/partials/custom.html | 1 + layouts/partials/custom/aside.html | 9 +++++++++ 7 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 assets/images/zsxq.webp create mode 100644 layouts/partials/custom/aside.html diff --git a/assets/css/_custom.scss b/assets/css/_custom.scss index 3dae45f0..7463b548 100644 --- a/assets/css/_custom.scss +++ b/assets/css/_custom.scss @@ -172,6 +172,12 @@ } } +.aside-custom { + &:not(:first-child) { + margin-top: 1rem; + } +} + [lang='en'] { .collection-details .collection-summary .collection-name::before { content: ''; diff --git a/assets/images/zsxq.webp b/assets/images/zsxq.webp new file mode 100644 index 0000000000000000000000000000000000000000..28ae72b0894554d7d20c462b7b7696858823cbb3 GIT binary patch literal 5836 zcmV;-7BlHmNk&G*761TOMM6+kP&iDt761S*?ZRdN6^r7wZ5(_5xzpR-FCrAAZNN|k z-7$eN&<{QqeNx^n&N=6q%{lbu z-N`xU&JEw+H~#z;Rr5L1lo!?(!sICzZ=`Wo4!GgC*3dx3i2+LQKSr5cxnaQ6|VeI`8xnXM)(H^G+|3hS+Ow zZzR@R7da*JN(r5h>`oUUGDMch;ODl(bqvxt4@J!>_{GQL9TagHs+v>4`S-->);dy9 z=16XxTa}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al%!5tRc)a7S%d+iN?n}~HTYzO@6gpiountNLFGe{ccdYtebqhf8dQp+(dnoo zt8^%O(i(8RB6$%yVkl~x*i%$Rt0B-u+99SxJLDPjw+4u+2p!1)S!GPpQ`7)5DXNY% z1hub5Pg#S+mm&^mg?^TnYDBvRidhjmvH`-%epydl^#rWZ=*UA-`|9<~+LB~kBm+93 zp~a;f(W*gXS~3ag0C6QD?MZ9!_|TDuuD0p-f=9n7J7jfeLY<7f>I-I33=ml|8J}ti zGw4v;Kt|m&5ZIy<%G%e@TH=g4`k|%OrP(u5^2Km~;L_V`SOc!Nm)?5D0#N)2p>6Y_ z27zCpux9FFYdocw+{eUN?29^ literal 0 HcmV?d00001 diff --git a/config/_default/params.toml b/config/_default/params.toml index 53ec0f35..41dba82e 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -645,6 +645,12 @@ disableThemeInject = false # 支持 "vConsole", "eruda" type = "vConsole" +# FixIt Docs config +[planet] + invite = "https://t.zsxq.com/BQcpe" # 正常加入链接:https://t.zsxq.com/CE3GF + promotion_coupon = "https://t.zsxq.com/BQcpe" + renewal_coupon = "" + # Page config # 文章页面配置 [page] diff --git a/content/en/community/index.md b/content/en/community/index.md index 26afbe56..43f898a8 100644 --- a/content/en/community/index.md +++ b/content/en/community/index.md @@ -35,13 +35,15 @@ All feedback is welcome! Head over to the [discussions][discussions], [Pull requ | [Hugo FixIt Planet][zsxq] | Official Knowledge Planet[^1] | -[^1]: Knowledge Planet is a paid community platform for knowledge sharing and communication. If you need more help and support, you can join our Knowledge Planet. ([Newcomer Coupon~](https://t.zsxq.com/BQcpe)) +[^1]: Knowledge Planet is a paid community platform for knowledge sharing and communication. If you need more help and support, you can join our Knowledge Planet. ([Newcomer Coupon~][promotion_coupon]) + [fixit]: https://github.com/hugo-fixit/FixIt [author]: https://github.com/Lruihao [discussions]: https://github.com/orgs/hugo-fixit/discussions [pulls]: https://github.com/hugo-fixit/FixIt/pulls [issues]: https://github.com/hugo-fixit/FixIt/issues [qq-group]: https://qm.qq.com/cgi-bin/qm/qr?k=awbwdTtSQ_-H5QGzeJxdWgv6JMbNehNM&jump_from=webapi -[zsxq]: https://t.zsxq.com/CE3GF +[zsxq]: {{< param planet.invite >}} +[promotion_coupon]: {{< param planet.promotion_coupon >}} diff --git a/content/zh-cn/community/index.md b/content/zh-cn/community/index.md index dba9b42a..23de41b9 100644 --- a/content/zh-cn/community/index.md +++ b/content/zh-cn/community/index.md @@ -35,13 +35,15 @@ _~作者:[Lruihao][author]~_ | [Hugo FixIt 星球][zsxq] | 官方知识星球[^1] | -[^1]: 知识星球是一个付费的知识分享和交流社区平台。如果你需要更多的帮助和支持,可以加入我们的知识星球。([新人优惠券~](https://t.zsxq.com/BQcpe)) +[^1]: 知识星球是一个付费的知识分享和交流社区平台。如果你需要更多的帮助和支持,可以加入我们的知识星球。([新人优惠券~][promotion_coupon]) + [fixit]: https://github.com/hugo-fixit/FixIt [author]: https://github.com/Lruihao [discussions]: https://github.com/orgs/hugo-fixit/discussions [pulls]: https://github.com/hugo-fixit/FixIt/pulls [issues]: https://github.com/hugo-fixit/FixIt/issues [qq-group]: https://qm.qq.com/cgi-bin/qm/qr?k=awbwdTtSQ_-H5QGzeJxdWgv6JMbNehNM&jump_from=webapi -[zsxq]: https://t.zsxq.com/CE3GF +[zsxq]: {{< param planet.invite >}} +[promotion_coupon]: {{< param planet.promotion_coupon >}} diff --git a/layouts/partials/custom.html b/layouts/partials/custom.html index f9c1842b..f1e671b3 100644 --- a/layouts/partials/custom.html +++ b/layouts/partials/custom.html @@ -8,6 +8,7 @@ {{- end -}} {{- define "custom-aside" -}} + {{- partial "custom/aside.html" . -}} {{- end -}} {{- define "custom-footer" -}} diff --git a/layouts/partials/custom/aside.html b/layouts/partials/custom/aside.html new file mode 100644 index 00000000..1482d9c5 --- /dev/null +++ b/layouts/partials/custom/aside.html @@ -0,0 +1,9 @@ +
+ {{- /* Hugo FixIt Planet */ -}} + {{- $zsxqImg := resources.Get "images/zsxq.webp" -}} + {{- $planetConfig := .Site.Params.planet -}} + + Hugo FixIt Planet QR code + +
+{{- /* EOF */ -}} \ No newline at end of file