Skip to content

Commit b9f69cf

Browse files
committed
chore: update domain
1 parent 632567d commit b9f69cf

File tree

29 files changed

+41
-41
lines changed

29 files changed

+41
-41
lines changed

_config.next.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ menu:
107107
#schedule: /schedule/ || fa fa-calendar
108108
sitemap: /sitemap.xml || fa fa-sitemap
109109
#commonweal: /404/ || fa fa-heartbeat
110-
English Version: https://andy23512.com/blog/ || fa fa-language
110+
English Version: https://andy23512.github.io/blog/ || fa fa-language
111111

112112
# Enable / Disable menu icons / item badges.
113113
menu_settings:

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ timezone: Asia/Taipei
1616

1717
# URL
1818
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
19-
url: https://andy23512.com/blog-zh-tw/
19+
url: https://andy23512.github.io/blog-zh-tw/
2020
root: /blog-zh-tw/
2121
permalink: :title/
2222
permalink_defaults:

bin/generate-posts.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,29 @@ import { slugify } from "../util/slugify.js";
77

88
function replaceNoteUrl(
99
noteContent: string,
10-
urlToFileName: Record<string, string>
10+
urlToFileName: Record<string, string>,
1111
) {
1212
let result = noteContent;
1313
Object.entries(urlToFileName).forEach(([url, fileName]) => {
1414
result = result.replaceAll(
1515
new RegExp(String.raw`\[([^\]]+)\]\(${url}(#[^)]+)?\)`, "g"),
16-
`<a href="{% post_path ${fileName} %}$2">$1</a>`
16+
`<a href="{% post_path ${fileName} %}$2">$1</a>`,
1717
);
1818
});
1919
return result;
2020
}
2121

2222
const rawNotes: Note[] = JSON.parse(
23-
readFileSync("./res/hackmd-note-data.json", { encoding: "utf8" })
23+
readFileSync("./res/hackmd-note-data.json", { encoding: "utf8" }),
2424
);
2525
const noteTableData: NoteTableEntry[] = JSON.parse(
26-
readFileSync("./res/note-table-data.json", { encoding: "utf8" })
26+
readFileSync("./res/note-table-data.json", { encoding: "utf8" }),
2727
);
2828
const notes = rawNotes.filter(
2929
(n) =>
3030
!/^[\w\-,' ()]+$/.exec(n.title) &&
3131
n.title !== "Tangent 的 CharaChorder 和 Forge 筆記本" &&
32-
n.title !== "Tangent 的 CharaChorder 和 Forge 筆記清單"
32+
n.title !== "Tangent 的 CharaChorder 和 Forge 筆記清單",
3333
);
3434
const urlToFileName: Record<string, string> = {};
3535
for (const note of rawNotes) {
@@ -44,14 +44,14 @@ for (const note of notes) {
4444
const $ = cheerio.load(html);
4545
const description = $('meta[name="description"]').attr("content") || "";
4646
const noteTableEntry = noteTableData.find((entry) =>
47-
entry.zhTwNoteUrl.endsWith(url)
47+
entry.zhTwNoteUrl.endsWith(url),
4848
);
4949
if (!noteTableEntry) {
5050
console.warn(`No note table entry found for note: ${note.title}`);
5151
continue;
5252
}
5353
const enNote = rawNotes.find(
54-
(n) => n.publishLink === noteTableEntry.enNoteUrl
54+
(n) => n.publishLink === noteTableEntry.enNoteUrl,
5555
);
5656
if (!enNote) {
5757
console.warn(`No en note found for note: ${note.title}`);
@@ -70,12 +70,12 @@ ${[-2, -1, 0, 1, 2]
7070
(offset) =>
7171
moment(note.createdAt).add(offset, "days").format(" - /YYYY/MM/DD/") +
7272
fileName +
73-
"/"
73+
"/",
7474
)
7575
.join("\n")}
7676
otherLanguages:
7777
- text: English Version
78-
path: https://andy23512.com/blog/${
78+
path: https://andy23512.github.io/blog/${
7979
urlToFileName[noteTableEntry.enNoteUrl.replace("https://hackmd.io", "")]
8080
}/
8181
---
@@ -89,18 +89,18 @@ ${replaceNoteUrl(
8989
.replaceAll("\n# ", "\n## ")
9090
.replaceAll(
9191
/:::spoiler (.*)\n([\S\s]*?):::/g,
92-
'{% collapsecard "$1" %}$2{% endcollapsecard %}'
92+
'{% collapsecard "$1" %}$2{% endcollapsecard %}',
9393
)
9494
.replaceAll(
9595
/:::spoiler\n([\S\s]*?):::/g,
96-
'{% collapsecard "詳細" %}$1{% endcollapsecard %}'
96+
'{% collapsecard "詳細" %}$1{% endcollapsecard %}',
9797
)
9898
.replaceAll(":::info", "{% blockquote %}")
9999
.replaceAll(":::warning", "{% blockquote %}")
100100
.replaceAll(":::", "{% endblockquote %}")
101101
.replaceAll(/\[^\w+\]/g, " $0")
102102
.replaceAll(":heavy_check_mark:", '<div class="check"></div>'),
103-
urlToFileName
103+
urlToFileName,
104104
)}
105105
`;
106106
writeFileSync(`source/_posts/${fileName}.md`, markdownFileContent);

source/_posts/alnitak-參宿一-tangent-所開發的-charachorder-3d-輸入裝置練習工具.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ alias:
1212
- /2024/05/03/alnitak-參宿一-tangent-所開發的-charachorder-3d-輸入裝置練習工具/
1313
otherLanguages:
1414
- text: English Version
15-
path: https://andy23512.com/blog/alnitak-a-practice-tool-of-charachorder-3d-input-devices-developed-by-tangent/
15+
path: https://andy23512.github.io/blog/alnitak-a-practice-tool-of-charachorder-3d-input-devices-developed-by-tangent/
1616
---
1717
{% blockquote %}
1818
:information_source: 免責聲明:本練習工具與 CharaChorder 公司沒有隸屬、關聯、授權、認可,或任何正式關聯的關係。

source/_posts/cc-extensions-能使打字網站顯示-charachorder-3d-輸入裝置的鍵盤佈局的非官方瀏覽器擴充套件們.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ alias:
1212
- /2025/10/21/cc-extensions-能使打字網站顯示-charachorder-3d-輸入裝置的鍵盤佈局的非官方瀏覽器擴充套件們/
1313
otherLanguages:
1414
- text: English Version
15-
path: https://andy23512.com/blog/cc-extensions-unofficial-extensions-that-display-the-layout-of-charachorder-3d-input-devices-on-typing-websites/
15+
path: https://andy23512.github.io/blog/cc-extensions-unofficial-extensions-that-display-the-layout-of-charachorder-3d-input-devices-on-typing-websites/
1616
---
1717
{% blockquote %}
1818
:information_source: 免責聲明:本擴充套件與 CharaChorder、Keybr 和Monkeytype 沒有隸屬、關聯、授權、認可,或任何正式關聯的關係。

source/_posts/tanchord-code-library-tccl-語言參考文件.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ alias:
1212
- /2025/11/26/tanchord-code-library-tccl-語言參考文件/
1313
otherLanguages:
1414
- text: English Version
15-
path: https://andy23512.com/blog/tanchord-code-library-tccl-language-reference/
15+
path: https://andy23512.github.io/blog/tanchord-code-library-tccl-language-reference/
1616
---
1717
# 前言
1818

source/_posts/tanchord-code-tc-code-非官方的、實驗性的-charachorder-和弦庫代碼編輯器.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ alias:
1212
- /2025/11/25/tanchord-code-tc-code-非官方的、實驗性的-charachorder-和弦庫代碼編輯器/
1313
otherLanguages:
1414
- text: English Version
15-
path: https://andy23512.com/blog/tanchord-code-tc-code-an-unofficial-experimental-code-editor-for-the-chord-library-of-charachorder-device/
15+
path: https://andy23512.github.io/blog/tanchord-code-tc-code-an-unofficial-experimental-code-editor-for-the-chord-library-of-charachorder-device/
1616
---
1717
{% blockquote %}
1818
:information_source: 免責聲明:本編輯器與 CharaChorder 公司沒有隸屬、關聯、授權、認可,或任何正式關聯的關係。

source/_posts/tangent-在-charachorder-one-上的注音輸入鍵盤佈局.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ alias:
1212
- /2024/03/20/tangent-在-charachorder-one-上的注音輸入鍵盤佈局/
1313
otherLanguages:
1414
- text: English Version
15-
path: https://andy23512.com/blog/tangent-s-layout-for-using-bopomofo-chinese-input-method-with-charachorder-one/
15+
path: https://andy23512.github.io/blog/tangent-s-layout-for-using-bopomofo-chinese-input-method-with-charachorder-one/
1616
---
1717
# CharaChorder One (CC1) 上的注音鍵盤佈局
1818

source/_posts/tangent-在-charachorder-one、charachorder-two-和-master-forge-上的最新佈局.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ alias:
1212
- /2024/11/05/tangent-在-charachorder-one、charachorder-two-和-master-forge-上的最新佈局/
1313
otherLanguages:
1414
- text: English Version
15-
path: https://andy23512.com/blog/tangent-s-latest-layout-on-charachorder-one-charachorder-two-and-master-forge/
15+
path: https://andy23512.github.io/blog/tangent-s-latest-layout-on-charachorder-one-charachorder-two-and-master-forge/
1616
---
1717
## 前言
1818

source/_posts/tangent-尋找在-master-forge-上的注音輸入方式的歷程.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ alias:
1212
- /2024/03/30/tangent-尋找在-master-forge-上的注音輸入方式的歷程/
1313
otherLanguages:
1414
- text: English Version
15-
path: https://andy23512.com/blog/tangent-s-progress-for-finding-a-bopomofo-solution-on-master-forge/
15+
path: https://andy23512.github.io/blog/tangent-s-progress-for-finding-a-bopomofo-solution-on-master-forge/
1616
---
1717
# (不採用)方向一:從天弦 41 鍵 V5 的佈局修改
1818

0 commit comments

Comments
 (0)