Skip to content

Commit ee28b47

Browse files
committed
v0.13 beta
1 parent b6a100e commit ee28b47

6 files changed

Lines changed: 48 additions & 9 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Deploy to GitHub Pages
2+
on:
3+
# 每次推送到 `main` 分支时触发这个“工作流程”
4+
# 如果你使用了别的分支名,请按需将 `main` 替换成你的分支名
5+
push:
6+
branches: [main]
7+
# 允许你在 GitHub 上的 Actions 标签中手动触发此“工作流程”
8+
workflow_dispatch:
9+
# 允许 job 克隆 repo 并创建一个 page deployment
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout your repository using git
19+
uses: actions/checkout@v4
20+
- name: Install, build, and upload your site
21+
uses: withastro/action@v3
22+
# with:
23+
# path: . # 存储库中 Astro 项目的根位置。(可选)
24+
# node-version: 20 # 用于构建站点的特定 Node.js 版本,默认为 20。(可选)
25+
# package-manager: pnpm@latest # 应使用哪个 Node.js 包管理器来安装依赖项和构建站点。会根据存储库中的 lockfile 自动检测。(可选)
26+
deploy:
27+
needs: build
28+
runs-on: ubuntu-latest
29+
environment:
30+
name: github-pages
31+
url: ${{ steps.deployment.outputs.page_url }}
32+
steps:
33+
- name: Deploy to GitHub Pages
34+
id: deployment
35+
uses: actions/deploy-pages@v4

.vscode/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@
1414
"editor.defaultFormatter": "esbenp.prettier-vscode"
1515
},
1616
"liveServer.settings.root": "/dist",
17+
"github.copilot.inlineSuggest.enable": true,
18+
"editor.inlineSuggest.enabled": false,
1719
"frontMatter.dashboard.openOnStart": false
1820
}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
基于 Mizuki 的个人Blog

astro.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { rehypeImageWidth } from "./src/plugins/rehype-image-width.mjs";
3030
// https://astro.build/config
3131
export default defineConfig({
3232
site: siteConfig.siteURL,
33-
base: "/",
33+
base: "/FGmagi.github.io",
3434
trailingSlash: "always",
3535

3636
output: "static",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"type": "module",
44
"version": "8.2",
55
"scripts": {
6+
"deploy": "gh-pages -d dist -r https://github.com/FGmagi/FGmagi.github.io.git",
67
"sync-content": "node scripts/sync-content.js",
78
"init-content": "node scripts/init-content-repo.js",
89
"predev": "node scripts/sync-content.js || true",

src/config.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ import { LinkPreset } from "./types/config";
1919
// 移除i18n导入以避免循环依赖
2020

2121
// 定义站点语言
22-
const SITE_LANG = "ja"; // 语言代码,例如:'en', 'zh_CN', 'ja' 等。
22+
const SITE_LANG = "zh_CN"; // 语言代码,例如:'en', 'zh_CN', 'ja' 等。
2323
const SITE_TIMEZONE = 8; //设置你的网站时区 from -12 to 12 default in UTC+8
2424
export const siteConfig: SiteConfig = {
25-
title: "Mizuki",
26-
subtitle: "One demo website",
27-
siteURL: "https://mizuki.mysqil.com/", // 请替换为你的站点URL,以斜杠结尾
28-
siteStartDate: "2025-01-01", // 站点开始运行日期,用于站点统计组件计算运行天数
25+
title: "少女祈祷中",
26+
subtitle: "FGmagi Blog",
27+
siteURL: "https://FGmagi.github.io/", // 请替换为你的站点URL,以斜杠结尾
28+
siteStartDate: "2026-2-18", // 站点开始运行日期,用于站点统计组件计算运行天数
2929

3030
timeZone: SITE_TIMEZONE,
3131

@@ -40,7 +40,7 @@ export const siteConfig: SiteConfig = {
4040
featurePages: {
4141
anime: true, // 番剧页面开关
4242
diary: true, // 日记页面开关
43-
friends: true, // 友链页面开关
43+
friends: false, // 友链页面开关
4444
projects: true, // 项目页面开关
4545
skills: true, // 技能页面开关
4646
timeline: true, // 时间线页面开关
@@ -72,7 +72,7 @@ export const siteConfig: SiteConfig = {
7272
},
7373

7474
bilibili: {
75-
vmid: "your-bilibili-vmid", // 在此处设置你的Bilibili用户ID (vmid),例如 "1129280784"
75+
vmid: "403250481", // 在此处设置你的Bilibili用户ID (vmid),例如 "1129280784"
7676
fetchOnDev: false, // 是否在开发环境下获取 Bilibili 数据(默认 false)
7777
SESSDATA: "", // Bilibili SESSDATA(可选,用于获取观看进度,从浏览器cookie中获取)
7878
coverMirror: "", // 封面图片镜像源(可选,如果需要使用镜像源,例如 "https://images.weserv.nl/?url=")
@@ -270,7 +270,7 @@ export const navBarConfig: NavBarConfig = {
270270
},
271271
{
272272
name: "Bilibili",
273-
url: "https://space.bilibili.com/701864046",
273+
url: "https://space.bilibili.com/403250481",
274274
external: true,
275275
icon: "fa6-brands:bilibili",
276276
},

0 commit comments

Comments
 (0)