feat: enable blog module

This commit is contained in:
KirisameVanilla 2025-09-23 10:20:57 +08:00
parent dd5b71f8f6
commit 688591d2ca
No known key found for this signature in database
GPG Key ID: A68EE6C617D68238
3 changed files with 39 additions and 1 deletions

View File

@ -0,0 +1,20 @@
---
title: Docusaurus Blog 格式
description: This introduces how to write a blog on docusaurus.
slug: hello-docusaurus-blog
authors:
- kv
tags: [hello, docusaurus-v2]
image: https://i.imgur.com/mErPwqL.png
hide_table_of_contents: false
---
Welcome to this blog. This blog is created with [**Docusaurus**](https://docusaurus.io/).
<!-- truncate -->
Refer to [this](https://docusaurus.io/docs/blog#adding-posts).
This is my first post on Docusaurus.
A whole bunch of exploration to follow.

9
blog/authors.yml Normal file
View File

@ -0,0 +1,9 @@
kv:
name: KirisameVanilla
title: 本项目管理人
url: https://vanillaaaa.org
image_url: https://vanillaaaa.org/_app/immutable/assets/favicon.39UucjmU.png
email: vanillaaaajp@gmail.com
socials:
x: v4n1llaaaa
github: KirisameVanilla

View File

@ -57,7 +57,11 @@ const config = {
editUrl: editUrl:
'https://github.com/BetterECNU/SharedCourses/tree/main', 'https://github.com/BetterECNU/SharedCourses/tree/main',
}, },
blog: false, blog: {
blogTitle: 'ECNU·课栈博客',
blogDescription: '分享生涯经验, 发布项目动态',
postsPerPage: 'ALL',
},
theme: { theme: {
customCss: './src/css/custom.css', customCss: './src/css/custom.css',
}, },
@ -90,6 +94,7 @@ const config = {
{to: '/docs/', label: '课栈', position: 'left'}, {to: '/docs/', label: '课栈', position: 'left'},
{to: '/docs/undergraduate/', label: '本科生院', position: 'left'}, {to: '/docs/undergraduate/', label: '本科生院', position: 'left'},
{to: '/docs/postgraduate/', label: '研究生院', position: 'left'}, {to: '/docs/postgraduate/', label: '研究生院', position: 'left'},
{to: 'blog', label: '博客', position: 'right'},
{ {
href: 'https://github.com/BetterECNU/SharedCourses', href: 'https://github.com/BetterECNU/SharedCourses',
label: 'GitHub', label: 'GitHub',
@ -123,6 +128,10 @@ const config = {
label: 'QQ 群聊', label: 'QQ 群聊',
href: 'https://qm.qq.com/q/ARnu9JwBfq', href: 'https://qm.qq.com/q/ARnu9JwBfq',
}, },
{
label: '博客',
to: '/blog',
}
], ],
}, },
{ {