From 0f1954d0208208e3421e314b531aa838c8f97c42 Mon Sep 17 00:00:00 2001 From: Ad-closeNN <1709301095@qq.com> Date: Fri, 15 Aug 2025 22:02:17 +0800 Subject: [PATCH] =?UTF-8?q?style(config):=20=E5=9C=A8=20Profile=20?= =?UTF-8?q?=E9=A1=B5=E5=8A=A0=E5=85=A5=E4=BA=86=E6=8F=90=E4=BA=A4=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2. typo(pages): new-domain.md 多拼写了双引号 --- .vscode/settings.json | 3 ++ src/components/widget/Profile.astro | 84 +++++++++++++++++++++++++++-- src/content/posts/captcha.md | 1 - src/content/posts/new-domain.md | 4 +- 4 files changed, 85 insertions(+), 7 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 8aaca8a..a643d13 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -24,5 +24,8 @@ }, "[html]": { "editor.defaultFormatter": "vscode.html-language-features" + }, + "[json]": { + "editor.defaultFormatter": "vscode.json-language-features" } } diff --git a/src/components/widget/Profile.astro b/src/components/widget/Profile.astro index bead0de..39a27e7 100644 --- a/src/components/widget/Profile.astro +++ b/src/components/widget/Profile.astro @@ -5,7 +5,6 @@ import { url } from "../../utils/url-utils"; import ImageWrapper from "../misc/ImageWrapper.astro"; const config = profileConfig; - const isSunday = new Date().getDay() === 0; ---
@@ -29,7 +28,18 @@ const isSunday = new Date().getDay() === 0;
{config.name}
+ + + + { isSunday && +
调整你的步伐,跟着节拍摇摆,举起双手拥抱你想成为的人
+ } + + + { !isSunday &&
{config.bio}
+ } +
{config.links.length > 1 && config.links.map(item => @@ -51,13 +61,23 @@ const isSunday = new Date().getDay() === 0;
+ +
+ +
+ - {isSunday && + { isSunday && } - {!isSunday && + { !isSunday && }
@@ -77,7 +97,7 @@ fetch("https://v1.hitokoto.cn") .catch(error => { console.error("获取一言失败:", error); //document.getElementById("hitokoto").innerText = "获取失败,请稍后再试。"; - //失败后用内置的,成功了用别人的。不过,这真的可能用失败吗? + //失败后用内置的,成功了用别人的。 document.getElementById("hitokoto").innerText = "再热情的心也经不起冷漠,再爱你的人也经不起冷落。"; }); @@ -131,4 +151,60 @@ fetch("https://v1.hitokoto.cn") // 页面加载完成后获取统计数据 document.addEventListener('DOMContentLoaded', loadSiteStats); + + + + \ No newline at end of file diff --git a/src/content/posts/captcha.md b/src/content/posts/captcha.md index b007609..6da44ac 100644 --- a/src/content/posts/captcha.md +++ b/src/content/posts/captcha.md @@ -17,7 +17,6 @@ customcover: ../assets/images/cloudflare-turnstile-verify-error.png - 你好~ diff --git a/src/content/posts/new-domain.md b/src/content/posts/new-domain.md index 03a930f..2814a75 100644 --- a/src/content/posts/new-domain.md +++ b/src/content/posts/new-domain.md @@ -9,10 +9,10 @@ draft: false --- # .xyz 域名 -:::warning["注意"] +:::warning[注意] 如无特殊指代,阿里云指[阿里云(国内站)](https://wanwang.aliyun.com/domain)。 ::: -之前在[*里云](https://wanwang.aliyun.com/domain)买了个8位纯数字的 `.xyz` 域名,现在买了 `.top` 后觉得特亏。一是在阿里云里面买任何域名都需要实名认证(14+),还得填一些实际身份的信息,我了个去,填完这些信息都够我在 Spaceship 买两次域名了,真是够麻烦的。。。 +之前在[阿里云](https://wanwang.aliyun.com/domain)买了个8位纯数字的 `.xyz` 域名,现在买了 `.top` 后觉得特亏。一是在阿里云里面买任何域名都需要实名认证(14+),还得填一些实际身份的信息,我了个去,填完这些信息都够我在 Spaceship 买两次域名了,真是够麻烦的。。。 # .top 域名 买域名后直接开始搭博客,真香~如果不出意外的话,这个域名将会一直用下去。~~毕竟`.top`确实便宜~~