Skip to content

Commit

Permalink
增加站点地图
Browse files Browse the repository at this point in the history
  • Loading branch information
whinc committed Mar 17, 2024
1 parent 46c7b4f commit ea69089
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ npm run dev

### 部署发布

- Github:推送代码,触发流水线发布 Github Pages
- Gitee:由于 Gitee 暂不支持 node.js ^18.17.0 的构建环境,采用手动发布,本地运行`npm run build-prod`后推送到仓库,手动触发 Gitee Pages 部署
```bash
# https://whinc.github.io/ucalc-website/
npm run deploy:github

# https://xiaohui_hubei.gitee.io/ucalc-website/
npm run deploy:gitee
```

### Gitee

Expand Down
14 changes: 14 additions & 0 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://whinc.github.io/ucalc-website/</loc>
<lastmod>2024-03-17T11:56:24.021Z</lastmod>
<changefreq>daily</changefreq>
<priority>1</priority>
</url>
<url>
<loc>https://xiaohui_hubei.gitee.io/ucalc-website/</loc>
<lastmod>2024-03-17T11:56:24.021Z</lastmod>
<changefreq>daily</changefreq>
<priority>1</priority>
</url>
</urlset>
4 changes: 2 additions & 2 deletions src/feature/VerticalFeatureRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const VerticalFeatureRow = (props: IVerticalFeatureRowProps) => {
<img
className="m-auto mt-6 text-xl leading-9"
src={`${router.basePath}${props.qrcode}`}
alt={props.qrcodeAlt ?? `${props.title}小程序码`}
alt={props.qrcodeAlt ?? `${props.title}小程序`}
loading="lazy"
/>
)}
Expand All @@ -43,7 +43,7 @@ const VerticalFeatureRow = (props: IVerticalFeatureRowProps) => {
{/* FIXME: github actions 部署后,screenshots 图片后缀变成了大写,导致图片加载不出来,暂时手动转换下 */}
<img
src={`${router.basePath}${props.image.replace(/png$/, 'PNG')}`}
alt={props.imageAlt ?? `${props.title}截图`}
alt={props.imageAlt ?? `${props.title}`}
loading="lazy"
/>
</div>
Expand Down

0 comments on commit ea69089

Please sign in to comment.