Skip to content

Commit c7fe593

Browse files
committed
增加 sitemap 到发布中
1 parent 785810a commit c7fe593

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

pages/sitemap.xml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3+
<url>
4+
<loc>https://www.stablecanvas.com/</loc>
5+
<lastmod>2024-05-29</lastmod>
6+
<changefreq>weekly</changefreq>
7+
<priority>1.0</priority>
8+
</url>
9+
<url>
10+
<loc>https://docs.stablecanvas.com/</loc>
11+
<lastmod>2024-05-29</lastmod>
12+
<changefreq>weekly</changefreq>
13+
<priority>0.8</priority>
14+
</url>
15+
<url>
16+
<loc>https://studio.stablecanvas.com/</loc>
17+
<lastmod>2024-05-29</lastmod>
18+
<changefreq>weekly</changefreq>
19+
<priority>0.8</priority>
20+
</url>
21+
</urlset>

scripts/build.sh

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ if [ ! -d "./dist" ]; then
2020
mkdir dist
2121
fi
2222
node $HTML_MINIFY index.html ./dist/index.html
23+
cp ../sitemap.xml ./dist/sitemap.xml
2324

2425
# build landing
2526
cd $WORKDIR/pages/landing
@@ -29,5 +30,6 @@ fi
2930
node $HTML_MINIFY index.html ./dist/index.html
3031
cp og-image.jpg ./dist/og-image.jpg
3132
cp twitter-card-image.jpg ./dist/twitter-card-image.jpg
33+
cp ../sitemap.xml ./dist/sitemap.xml
3234

3335
echo "Build done!"

0 commit comments

Comments
 (0)