feat: personalize blog and update configurations

This commit is contained in:
KazooTTT
2025-02-05 20:35:05 +08:00
parent 4f55d62fb6
commit f22b2529e8
20 changed files with 314 additions and 50 deletions

View File

@ -3,10 +3,10 @@ import type { AstroExpressiveCodeOptions } from "astro-expressive-code";
export const siteConfig: SiteConfig = {
// Used as both a meta property (src/components/BaseHead.astro L:31 + L:49) & the generated satori png (src/pages/og-image/[slug].png.ts)
author: "Chris Williams",
author: "KazooTTT",
// Date.prototype.toLocaleDateString() parameters, found in src/utils/date.ts.
date: {
locale: "en-GB",
locale: "zh-CN",
options: {
day: "numeric",
month: "short",
@ -14,15 +14,15 @@ export const siteConfig: SiteConfig = {
},
},
// Used as the default description meta property and webmanifest description
description: "An opinionated starter theme for Astro",
description: "记录技术分享、学习笔记、生活日常、碎碎念的地方。",
// HTML lang property, found in src/layouts/Base.astro L:18 & astro.config.ts L:48
lang: "en-GB",
lang: "zh-CN",
// Meta property, found in src/components/BaseHead.astro L:42
ogLocale: "en_GB",
ogLocale: "zh_CN",
// Used to construct the meta title property found in src/components/BaseHead.astro L:11, and webmanifest name found in astro.config.ts L:42
title: "Astro Theme Cactus",
title: "声控烤箱的博客",
// ! Please remember to replace the following site property with your own domain, used in astro.config.ts
url: "https://astro-cactus.chriswilliams.dev/",
url: "https://blog.kazoottt.top/",
};
// Used to generate links in both the Header & Footer.
@ -43,6 +43,10 @@ export const menuLinks: { path: string; title: string }[] = [
path: "/notes/",
title: "Notes",
},
{
path: "/friends/",
title: "Friends",
},
];
// https://expressive-code.com/reference/configuration/