逃到解脫
逃到解脫
It's directly create this PR by VSCode that I haven't edit the PR info... This uses a more convenient method to create the timestamp for `published:` in `new-post` and conveniently...
In `.\src\utils\content-utils.ts`, the following code is used to sort articles in chronological order. 在 `.\src\utils\content-utils.ts` 中,使用了如下代碼使得文章能夠按照時間順序排序。 ```ts // // Retrieve posts and sort them by publication date async function getRawSortedPosts()...
Yes, it will be recorded in the `Frontmatter`, and users will definitely notice this ISO 8601 timestamp when they edit. 是的、他會被記錄在 `Frontmatter` 中、並且用戶編輯的時候一定會注意到這個 ISO 8601 時間戳、 It's hard to balance...
I got it... I will put the possible modifications below. ```js function getDate() { const today = new Date() const year = today.getFullYear() const month = String(today.getMonth() + 1).padStart(2, "0")...
好吶———— Hoooooooooooray~