Skip to content

Commit 27c976f

Browse files
committed
Update website domain
1 parent 784c56e commit 27c976f

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
WEBSITE=https://www.fwqaq.us/
1+
WEBSITE=https://www.fwqaaq.com/
22
AUTHOR=fwqaaq
33
PORT=3000

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
It's fully responsive on the mobile, tablet and laptop.
1212

13-
See: <https://www.fwqaq.us>
13+
See: <https://www.fwqaaq.com>
1414

1515
## Create a new post
1616

main.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const src = import.meta.resolve('./src/')
3434
const randomNumber = Math.floor(Math.random() * 1000000)
3535

3636
// global config
37-
const website = Deno.env.get('WEBSITE')
37+
const WEBSITE = Deno.env.get('WEBSITE')
3838
const author = Deno.env.get('AUTHOR')
3939
const port = Deno.env.get('PORT')
4040
const header = await Deno.readTextFile(new URL('./util/header.html', src))
@@ -166,7 +166,7 @@ async function Others() {
166166
// Handle the RSS
167167
const rss = new URL('./feed.xml', dist)
168168
const itemsRss = metaData.reduce((acc, { date, title, summary }) => {
169-
const url = `${website}posts/${handleUTC(date)}/`
169+
const url = `${WEBSITE}posts/${handleUTC(date)}/`
170170
return acc + `<item>
171171
<title>${title}</title>
172172
<link>${url}</link>
@@ -180,22 +180,22 @@ async function Others() {
180180
const itemsSitemap = `<?xml version="1.0" encoding="UTF-8"?>
181181
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
182182
${metaData.reduce((acc, { date }) =>
183-
`${acc}<url><loc>${website}posts/${handleUTC(date)}/</loc></url>`, '')
183+
`${acc}<url><loc>${WEBSITE}posts/${handleUTC(date)}/</loc></url>`, '')
184184
}
185185
</urlset>`
186186

187187
// robots
188188
const robots = new URL('./robots.txt', dist)
189189
const robotsContent = `User-agent: *
190190
Allow: /
191-
Sitemap: ${website}sitemap.xml`
191+
Sitemap: ${WEBSITE}sitemap.xml`
192192

193193
const files = [
194-
[rss, getRss(author, website, itemsRss)],
194+
[rss, getRss(author, WEBSITE, itemsRss)],
195195
[sitemap, itemsSitemap],
196196
[robots, robotsContent],
197197
]
198-
const g = generateSingleFile(cname, 'www.fwqaq.us')
198+
const g = generateSingleFile(cname, WEBSITE.slice(8, -1))
199199
g.next()
200200
files.forEach((file) => g.next(file))
201201
}

src/about/about.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: About
77

88
## Who
99

10-
[<img src="https://github.githubassets.com/assets/GitHub-Mark-ea2971cee799.png" width="32px" alt="GitHub">](https://github.com/fwqaaq) ··· [<img src="https://ssl.gstatic.com/ui/v1/icons/mail/rfr/gmail.ico" width="32px" alt="Gmail">](mailto:fwqaaq@gmail) ··· [<img src="https://www.fwqaq.us/public/favicon.ico" width="32px" alt="Blog" />](https://www.fwqaq.us) ... [<img src="https://telegram.org/img/website_icon.svg?4" width="32px" alt="Telegram">](https://t.me/fwqaaq)
10+
[<img src="https://github.githubassets.com/assets/GitHub-Mark-ea2971cee799.png" width="32px" alt="GitHub">](https://github.com/fwqaaq) ··· [<img src="https://ssl.gstatic.com/ui/v1/icons/mail/rfr/gmail.ico" width="32px" alt="Gmail">](mailto:fwqaaq@gmail) ··· [<img src="https://www.fwqaaq.com/public/favicon.ico" width="32px" alt="Blog" />](https://www.fwqaaq.com) ... [<img src="https://telegram.org/img/website_icon.svg?4" width="32px" alt="Telegram">](https://t.me/fwqaaq)
1111

1212
## Languages and Tools
1313

src/util/footer.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<a class="icon" href="mailto:fwqaaq@gmail">
1414
<img src="https://ssl.gstatic.com/ui/v1/icons/mail/rfr/gmail.ico" width="32px" alt="Gmail">
1515
</a>
16-
<a class="icon" href="https://www.fwqaq.us">
17-
<img src="https://www.fwqaq.us/public/favicon.ico" width="32px" alt="Blog" />
16+
<a class="icon" href="https://www.fwqaaq.com">
17+
<img src="https://www.fwqaaq.com/public/favicon.ico" width="32px" alt="Blog" />
1818
</a>
1919
<a class="icon" href="https://t.me/fwqaaq">
2020
<img src="https://telegram.org/img/website_icon.svg?4" width="32px" alt="Telegram">

src/util/resume/resume.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ header:
22
title: '我的简历'
33
44
telephone: '186-xxxx-xxxx'
5-
website: 'https://www.fwqaq.us'
5+
website: 'https://www.fwqaaq.com'
66
graduation:
77
school: '家里蹲大学分学'
88
time: '2020.9 - 2024.6'
@@ -39,6 +39,6 @@ skills:
3939
- 可配置项:熟悉 Linux 操作、Docker 容器配置以及 Shell 脚本编写等
4040
others:
4141
- GitHub:在这里,你可以找到我的一些开源项目 https://github.com/fwqaaq
42-
- 我的技术博客:www.fwqaq.us
42+
- 我的技术博客:www.fwqaaq.com
4343
- 对开源富有热情、对学习不断激进、对技术一直追求
4444
- 我在寻找一个稍微偏底层一些的实习,当然我也愿意接受其它的新鲜事物。

0 commit comments

Comments
 (0)