Skip to content

Commit d2afb50

Browse files
committed
将 APEX 域修改为 www 域
1 parent e7ae6be commit d2afb50

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

.github/workflows/main.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
run: |
4343
echo "MOEICP=20221816" >> $GITHUB_ENV
4444
echo "OSS_BUCTET=potat0-box" >> $GITHUB_ENV
45-
echo "REFRESH_URL=xn--udsw05j.space" >> $GITHUB_ENV
45+
echo "REFRESH_URL=www.xn--udsw05j.space" >> $GITHUB_ENV
4646
mv source/favicon/* source/
4747
rm -rf source/favicon
4848
curl https://cdn.jsdelivr.net/gh/PrismJS/prism-themes@master/themes/prism-material-light.min.css --create-dirs -o node_modules/prismjs/themes/prism-materiallight.css
@@ -53,15 +53,15 @@ jobs:
5353
run: |
5454
echo "MOEICP=20241816" >> $GITHUB_ENV
5555
echo "OSS_BUCTET=potat0-box-cn" >> $GITHUB_ENV
56-
echo "REFRESH_URL=potat0.cc" >> $GITHUB_ENV
57-
sed -i 's/potat0.cc/土豆.space/g' _config.yml
58-
sed -i 's/potat0.cc/土豆.space/g' source/manifest.json
59-
sed -i 's/potat0.cc/土豆.space/g' source/robots.txt
56+
echo "REFRESH_URL=www.potat0.cc" >> $GITHUB_ENV
57+
sed -i 's/www.potat0.cc/www.土豆.space/g' _config.yml
58+
sed -i 's/www.potat0.cc/www.土豆.space/g' source/manifest.json
59+
sed -i 's/www.potat0.cc/www.土豆.space/g' source/robots.txt
6060
sed -i 's/icp_text: 浙ICP备2021017952号-1/icp_text: 浙ICP备2021017952号-2/g' _config.fluid.yml
6161
sed -i 's/police_text: 浙公网安备33010602011812号/police_text: 浙公网安备33010602013468号/g' _config.fluid.yml
6262
sed -i 's/police_code: 33010602011812/police_code: 33010602013468/g' _config.fluid.yml
6363
sed -i 's/moeicp_code: 20221816/moeicp_code: 20241816/g' _config.fluid.yml
64-
perl -0777 -np -i -e 's,(-{10}\n\n).*土豆\.space.*(\n\n-{10}),\1这是本站的一个中文域名的实验性站点,你可以在 [https://potat0.cc](https://potat0.cc/) 访问标准网站。\2,g' source/about/index.md
64+
perl -0777 -np -i -e 's,(-{10}\n\n).*土豆\.space.*(\n\n-{10}),\1这是本站的一个中文域名的实验性站点,你可以在 [https://www.potat0.cc](https://www.potat0.cc/) 访问标准网站。\2,g' source/about/index.md
6565
- name: Build
6666
run: |
6767
hexo g

_config.fluid.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,7 @@ links:
12371237
# Custom content at the bottom of the links
12381238
custom:
12391239
enable: false
1240-
content: "<hr><p>在下方留言申请加入我的友链,按如下格式提供信息:</p><ul><li>ID:Potat0</li><li>博客名:Potat0 Box</li><li>链接:https://potat0.cc/</li><li>头像:/img/avatar.webp</li></ul>"
1240+
content: "<hr><p>在下方留言申请加入我的友链,按如下格式提供信息:</p><ul><li>ID:Potat0</li><li>博客名:Potat0 Box</li><li>链接:https://www.potat0.cc/</li><li>头像:/img/avatar.webp</li></ul>"
12411241

12421242
# 评论插件
12431243
# Comment plugin

_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ default_layout: post
1010
new_post_name: :year-:month-:day-:title.md
1111
permalink: posts/:year:month:day/:title/
1212
post_asset_folder: true
13-
url: "https://potat0.cc/"
13+
url: "https://www.potat0.cc/"
1414

1515
markdown:
1616
render:

source/about/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Vidar-Team 20 级成员,原 Re 手,现在主要研究 Computer Networking。
1010

1111
----------
1212

13-
本站有一个中文域名的实验性站点,你可以在 [https://土豆.space](https://xn--udsw05j.space/) 访问。
13+
本站有一个中文域名的实验性站点,你可以在 [https://www.土豆.space](https://www.xn--udsw05j.space/) 访问。
1414

1515
----------
1616

source/manifest.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Potat0 Box",
33
"short_name": "Potat0 Box",
44
"description": "A box of Potat0",
5-
"start_url": "https://potat0.cc/",
5+
"start_url": "https://www.potat0.cc/",
66
"icons": [
77
{
88
"src": "favicon.png",
@@ -25,7 +25,7 @@
2525
"name": "Home",
2626
"short_name": "Home",
2727
"description": "Back to homepage",
28-
"url": "https://potat0.cc/",
28+
"url": "https://www.potat0.cc/",
2929
"icons": [
3030
{
3131
"src": "favicon.png",

source/robots.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ Allow: /tags/
88

99
Disallow: /local-search.xml
1010

11-
Sitemap: https://potat0.cc/sitemap.xml
11+
Sitemap: https://www.potat0.cc/sitemap.xml

0 commit comments

Comments
 (0)