Skip to content

Commit e063a5b

Browse files
committed
format
1 parent 86d35aa commit e063a5b

7 files changed

Lines changed: 84 additions & 84 deletions

File tree

src/_data/friends.json

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
[
2-
{
3-
"siteTitle": "Generals",
4-
"siteDesc": "如果真爱有颜色,那一定是被终焉之红所染尽的颜色",
5-
"siteUrl": "https://generalsio.top/",
6-
"siteIcon": "https://generalsio.top/img/avatar.jpg"
7-
},
8-
{
9-
"siteTitle": "_042的小破站♪",
10-
"siteDesc": "Welcome to _042のTiny Home! ♪♪♪|",
11-
"siteUrl": "https://skdg042.github.io/",
12-
"siteIcon": "https://avatars.githubusercontent.com/u/184650144?v=4"
13-
},
14-
{
15-
"siteTitle": "TWind 的博客",
16-
"siteDesc": "5mm应援团资深团员",
17-
"siteUrl": "http://www.twindworld.top/",
18-
"siteIcon": "https://avatars.githubusercontent.com/u/186908663?v=4"
19-
},
20-
{
21-
"siteTitle": "HasonoCell",
22-
"siteDesc": "Because I can hear you",
23-
"siteUrl": "https://hasonocell.club/",
24-
"siteIcon": "https://hasonocell.club/img/avatar.png"
25-
},
26-
{
27-
"siteTitle": "MeTの主页",
28-
"siteDesc": "Stay Hungry. Stay Foolish. 求知若渴,大智若愚。",
29-
"siteUrl": "https://met6.top/",
30-
"siteIcon": "https://met6.top/res/logo.png"
31-
},
32-
{
33-
"siteTitle": "MaoMeng's secret home",
34-
"siteDesc": "我喜欢你",
35-
"siteUrl": "https://maomengblog.vercel.app/",
36-
"siteIcon": "https://maomengblog.vercel.app/_astro/avatar.DCxqmrMX_ZDbOQJ.webp"
37-
}
38-
]
1+
[
2+
{
3+
"siteTitle": "Generals",
4+
"siteDesc": "如果真爱有颜色,那一定是被终焉之红所染尽的颜色",
5+
"siteUrl": "https://generalsio.top/",
6+
"siteIcon": "https://generalsio.top/img/avatar.jpg"
7+
},
8+
{
9+
"siteTitle": "_042的小破站♪",
10+
"siteDesc": "Welcome to _042のTiny Home! ♪♪♪|",
11+
"siteUrl": "https://skdg042.github.io/",
12+
"siteIcon": "https://avatars.githubusercontent.com/u/184650144?v=4"
13+
},
14+
{
15+
"siteTitle": "TWind 的博客",
16+
"siteDesc": "5mm应援团资深团员",
17+
"siteUrl": "http://www.twindworld.top/",
18+
"siteIcon": "https://avatars.githubusercontent.com/u/186908663?v=4"
19+
},
20+
{
21+
"siteTitle": "HasonoCell",
22+
"siteDesc": "Because I can hear you",
23+
"siteUrl": "https://hasonocell.club/",
24+
"siteIcon": "https://hasonocell.club/img/avatar.png"
25+
},
26+
{
27+
"siteTitle": "MeTの主页",
28+
"siteDesc": "Stay Hungry. Stay Foolish. 求知若渴,大智若愚。",
29+
"siteUrl": "https://met6.top/",
30+
"siteIcon": "https://met6.top/res/logo.png"
31+
},
32+
{
33+
"siteTitle": "MaoMeng's secret home",
34+
"siteDesc": "我喜欢你",
35+
"siteUrl": "https://maomengblog.vercel.app/",
36+
"siteIcon": "https://maomengblog.vercel.app/_astro/avatar.DCxqmrMX_ZDbOQJ.webp"
37+
}
38+
]

src/components/misc/Giscus.astro

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
---
2-
interface Props {
3-
repo: string;
4-
repoId: string;
5-
category: string;
6-
categoryId: string;
7-
mapping?: string;
8-
reactionsEnabled?: boolean;
9-
emitMetadata?: boolean;
10-
inputPosition?: 'top' | 'bottom';
11-
lang?: string;
12-
}
13-
14-
const {
15-
repo,
16-
repoId,
17-
category,
18-
categoryId,
19-
mapping = 'pathname',
20-
reactionsEnabled = true,
21-
emitMetadata = false,
22-
inputPosition = 'bottom',
23-
lang = 'zh-CN'
24-
} = Astro.props;
2+
interface Props {
3+
repo: string;
4+
repoId: string;
5+
category: string;
6+
categoryId: string;
7+
mapping?: string;
8+
reactionsEnabled?: boolean;
9+
emitMetadata?: boolean;
10+
inputPosition?: "top" | "bottom";
11+
lang?: string;
12+
}
13+
14+
const {
15+
repo,
16+
repoId,
17+
category,
18+
categoryId,
19+
mapping = "pathname",
20+
reactionsEnabled = true,
21+
emitMetadata = false,
22+
inputPosition = "bottom",
23+
lang = "zh-CN",
24+
} = Astro.props;
2525
---
2626

2727
<div id="giscus-container"></div>

src/config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ export const siteConfig: SiteConfig = {
3232
favicon: [
3333
// Leave this array empty to use the default favicon
3434
{
35-
src: '/favicon/favicon.png', // Path of the favicon, relative to the /public directory
36-
// theme: 'light', // (Optional) Either 'light' or 'dark', set only if you have different favicons for light and dark mode
37-
// sizes: '32x32', // (Optional) Size of the favicon, set only if you have favicons of different sizes
38-
}
35+
src: "/favicon/favicon.png", // Path of the favicon, relative to the /public directory
36+
// theme: 'light', // (Optional) Either 'light' or 'dark', set only if you have different favicons for light and dark mode
37+
// sizes: '32x32', // (Optional) Size of the favicon, set only if you have favicons of different sizes
38+
},
3939
],
4040
};
4141

src/i18n/i18nKey.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ enum I18nKey {
3232
author = "author",
3333
publishedAt = "publishedAt",
3434
license = "license",
35-
friends = 'friends',
35+
friends = "friends",
3636
}
3737

3838
export default I18nKey;

src/i18n/languages/en.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const en: Translation = {
2323
[Key.minutesCount]: "minutes",
2424
[Key.postCount]: "post",
2525
[Key.postsCount]: "posts",
26-
[Key.friends]: 'Friends',
26+
[Key.friends]: "Friends",
2727
[Key.themeColor]: "Theme Color",
2828

2929
[Key.lightMode]: "Light",

src/i18n/languages/zh_CN.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const zh_CN: Translation = {
3131
[Key.systemMode]: "跟随系统",
3232

3333
[Key.more]: "更多",
34-
[Key.friends]: '友链',
34+
[Key.friends]: "友链",
3535
[Key.author]: "作者",
3636
[Key.publishedAt]: "发布于",
3737
[Key.license]: "许可协议",

src/pages/friends.astro

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
---
2-
import {getEntry, render} from "astro:content";
3-
import Markdown from "@components/misc/Markdown.astro";
4-
import I18nKey from "../i18n/i18nKey";
5-
import {i18n} from "../i18n/translation";
6-
import MainGridLayout from "../layouts/MainGridLayout.astro";
7-
import friendsItems from "../_data/friends.json";
8-
9-
const friendsPage = await getEntry("spec", "friends");
10-
11-
if (!friendsPage) {
12-
throw new Error("Friends page content not found");
13-
}
14-
15-
const {Content} = await render(friendsPage);
16-
17-
const items = friendsItems;
2+
import { getEntry, render } from "astro:content";
3+
import Markdown from "@components/misc/Markdown.astro";
4+
import I18nKey from "../i18n/i18nKey";
5+
import { i18n } from "../i18n/translation";
6+
import MainGridLayout from "../layouts/MainGridLayout.astro";
7+
import friendsItems from "../_data/friends.json";
8+
9+
const friendsPage = await getEntry("spec", "friends");
10+
11+
if (!friendsPage) {
12+
throw new Error("Friends page content not found");
13+
}
14+
15+
const { Content } = await render(friendsPage);
16+
17+
const items = friendsItems;
1818
---
1919
<MainGridLayout title={i18n(I18nKey.friends)} description={i18n(I18nKey.friends)}>
2020
<div class="flex w-full rounded-[var(--radius-large)] overflow-hidden relative min-h-32 mb-4">

0 commit comments

Comments
 (0)