Skip to content

Commit 841a246

Browse files
committed
Publish personal blog updates
1 parent 3c1edd9 commit 841a246

18 files changed

Lines changed: 152 additions & 701 deletions

File tree

‎astro.config.mjs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export default defineConfig({
2929
site: "https://7oMB2006.github.io/",
3030
base: "/",
3131
trailingSlash: "always",
32+
devToolbar: { enabled: false },
3233
integrations: [
3334
tailwind({
3435
nesting: true,
@@ -53,6 +54,7 @@ export default defineConfig({
5354
"fa6-brands": ["*"],
5455
"fa6-regular": ["*"],
5556
"fa6-solid": ["*"],
57+
"material-symbols": ["*"],
5658
},
5759
}),
5860
expressiveCode({

‎public/images/checkpoint.png‎

2.06 MB
Loading

‎src/assets/images/avatar-7omb.png‎

1.05 MB
Loading

‎src/assets/images/banner-7omb.png‎

2.06 MB
Loading

‎src/components/Footer.astro‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ const currentYear = new Date().getFullYear();
1515
<a class="transition link text-[var(--primary)] font-medium" target="_blank" href={url('rss.xml')}>RSS</a> /
1616
<a class="transition link text-[var(--primary)] font-medium" target="_blank" href={url('sitemap-index.xml')}>Sitemap</a><br>
1717
Powered by
18-
<a class="transition link text-[var(--primary)] font-medium" target="_blank" href="https://astro.build">Astro</a> &
1918
<a class="transition link text-[var(--primary)] font-medium" target="_blank" href="https://github.com/saicaca/fuwari">Fuwari</a>
2019
</div>
2120
</div>

‎src/components/Giscus.astro‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
import { giscusConfig } from "../config";
3+
---
4+
5+
{giscusConfig.enabled && (
6+
<section class="card-base rounded-[var(--radius-large)] px-6 md:px-9 py-6 mb-6 onload-animation">
7+
<div class="giscus"></div>
8+
<script
9+
is:inline
10+
src="https://giscus.app/client.js"
11+
data-repo={giscusConfig.repo}
12+
data-repo-id={giscusConfig.repoId}
13+
data-category={giscusConfig.category}
14+
data-category-id={giscusConfig.categoryId}
15+
data-mapping={giscusConfig.mapping}
16+
data-strict="0"
17+
data-reactions-enabled={giscusConfig.reactionsEnabled}
18+
data-emit-metadata={giscusConfig.emitMetadata}
19+
data-input-position={giscusConfig.inputPosition}
20+
data-theme={giscusConfig.theme}
21+
data-lang={giscusConfig.lang}
22+
data-loading={giscusConfig.loading}
23+
crossorigin="anonymous"
24+
async
25+
></script>
26+
</section>
27+
)}

‎src/config.ts‎

Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ import type {
88
import { LinkPreset } from "./types/config";
99

1010
export const siteConfig: SiteConfig = {
11-
title: "Fuwari",
12-
subtitle: "Demo Site",
13-
lang: "en", // Language code, e.g. 'en', 'zh_CN', 'ja', etc.
11+
title: "7oMB",
12+
subtitle: "记录思考、代码与正在进行的事情",
13+
lang: "zh_CN", // Language code, e.g. 'en', 'zh_CN', 'ja', etc.
1414
themeColor: {
15-
hue: 250, // Default hue for the theme color, from 0 to 360. e.g. red: 0, teal: 200, cyan: 250, pink: 345
15+
hue: 42, // Default hue for the theme color, from 0 to 360. e.g. red: 0, teal: 200, cyan: 250, pink: 345
1616
fixed: false, // Hide the theme color picker for visitors
1717
},
1818
banner: {
19-
enable: false,
20-
src: "assets/images/demo-banner.png", // Relative to the /src directory. Relative to the /public directory if it starts with '/'
19+
enable: true,
20+
src: "assets/images/banner-7omb.png", // Relative to the /src directory. Relative to the /public directory if it starts with '/'
2121
position: "center", // Equivalent to object-position, only supports 'top', 'center', 'bottom'. 'center' by default
2222
credit: {
2323
enable: false, // Display the credit text of the banner image
@@ -44,35 +44,39 @@ export const navBarConfig: NavBarConfig = {
4444
LinkPreset.Home,
4545
LinkPreset.Archive,
4646
LinkPreset.About,
47+
{
48+
name: "友链",
49+
url: "/friends/",
50+
},
4751
{
4852
name: "GitHub",
49-
url: "https://github.com/saicaca/fuwari", // Internal links should not include the base path, as it is automatically added
53+
url: "https://github.com/7oMB2006", // Internal links should not include the base path, as it is automatically added
5054
external: true, // Show an external link icon and will open in a new tab
5155
},
5256
],
5357
};
5458

5559
export const profileConfig: ProfileConfig = {
56-
avatar: "assets/images/demo-avatar.png", // Relative to the /src directory. Relative to the /public directory if it starts with '/'
57-
name: "Lorem Ipsum",
58-
bio: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
60+
avatar: "assets/images/avatar-7omb.png", // Relative to the /src directory. Relative to the /public directory if it starts with '/'
61+
name: "7oMB",
62+
bio: "踽踽而行 步履不停",
5963
links: [
6064
{
61-
name: "Twitter",
62-
icon: "fa6-brands:twitter", // Visit https://icones.js.org/ for icon codes
65+
name: "Bilibili",
66+
icon: "fa6-brands:bilibili", // Replace with your Bilibili space URL
6367
// You will need to install the corresponding icon set if it's not already included
6468
// `pnpm add @iconify-json/<icon-set-name>`
65-
url: "https://twitter.com",
69+
url: "https://space.bilibili.com/506159361",
6670
},
6771
{
68-
name: "Steam",
69-
icon: "fa6-brands:steam",
70-
url: "https://store.steampowered.com",
72+
name: "个人网站(待定)",
73+
icon: "material-symbols:link",
74+
url: "https://example.com/",
7175
},
7276
{
7377
name: "GitHub",
7478
icon: "fa6-brands:github",
75-
url: "https://github.com/saicaca/fuwari",
79+
url: "https://github.com/7oMB2006",
7680
},
7781
],
7882
};
@@ -88,3 +92,18 @@ export const expressiveCodeConfig: ExpressiveCodeConfig = {
8892
// Please select a dark theme, as this blog theme currently only supports dark background color
8993
theme: "github-dark",
9094
};
95+
96+
export const giscusConfig = {
97+
enabled: true,
98+
repo: "7oMB2006/7oMB2006.github.io",
99+
repoId: "R_kgDOT9Dlnw",
100+
category: "Announcements",
101+
categoryId: "DIC_kwDOT9Dln84DDtT6",
102+
mapping: "pathname",
103+
reactionsEnabled: "1",
104+
emitMetadata: "0",
105+
inputPosition: "top",
106+
theme: "preferred_color_scheme",
107+
lang: "zh-CN",
108+
loading: "lazy",
109+
};

‎src/content/posts/draft.md‎

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)