From 24d8f04282ecf284a275cb2e0d3423b264e54da6 Mon Sep 17 00:00:00 2001 From: hailaz <739476267@qq.com> Date: Tue, 29 Oct 2024 21:57:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 5424b99467c..9a0e6a3ebb8 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,13 +1,15 @@ import Link from '@docusaurus/Link'; +import useBaseUrl from '@docusaurus/useBaseUrl'; import ContributorsSVG from '@site/static/img/contributors.svg'; import Layout from '@theme/Layout'; function HomepageHeader() { + const githubImage = useBaseUrl('/img/github.svg'); return (
-
@@ -77,7 +79,7 @@ function HomepageHeader() { to="https://github.com/gogf/gf" style={{ width: '200px', paddingLeft: '50px', - backgroundImage: `url(/img/github.svg)`, + backgroundImage: `url(${githubImage})`, backgroundRepeat: 'no-repeat', backgroundPosition: '45px center', }}> @@ -289,7 +291,7 @@ function Contributors() { 贡献者列表
- 💖感谢所有参与GoFrame开源建设的贡献者💖 + 💖感谢所有参与GoFrame开源建设的贡献者💖