From 688591d2ca196dab67d06517df2ab0fc73738256 Mon Sep 17 00:00:00 2001 From: KirisameVanilla <118162831+KirisameVanilla@users.noreply.github.com> Date: Tue, 23 Sep 2025 10:20:57 +0800 Subject: [PATCH] feat: enable blog module --- blog/2025-09-23-hello-docusaurus-blog.md | 20 ++++++++++++++++++++ blog/authors.yml | 9 +++++++++ docusaurus.config.js | 11 ++++++++++- 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 blog/2025-09-23-hello-docusaurus-blog.md create mode 100644 blog/authors.yml diff --git a/blog/2025-09-23-hello-docusaurus-blog.md b/blog/2025-09-23-hello-docusaurus-blog.md new file mode 100644 index 0000000..2426bac --- /dev/null +++ b/blog/2025-09-23-hello-docusaurus-blog.md @@ -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/). + + + +Refer to [this](https://docusaurus.io/docs/blog#adding-posts). + +This is my first post on Docusaurus. + +A whole bunch of exploration to follow. diff --git a/blog/authors.yml b/blog/authors.yml new file mode 100644 index 0000000..8d3d788 --- /dev/null +++ b/blog/authors.yml @@ -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 \ No newline at end of file diff --git a/docusaurus.config.js b/docusaurus.config.js index 342a9e1..02ab20d 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -57,7 +57,11 @@ const config = { editUrl: 'https://github.com/BetterECNU/SharedCourses/tree/main', }, - blog: false, + blog: { + blogTitle: 'ECNU·课栈博客', + blogDescription: '分享生涯经验, 发布项目动态', + postsPerPage: 'ALL', + }, theme: { customCss: './src/css/custom.css', }, @@ -90,6 +94,7 @@ const config = { {to: '/docs/', label: '课栈', position: 'left'}, {to: '/docs/undergraduate/', label: '本科生院', position: 'left'}, {to: '/docs/postgraduate/', label: '研究生院', position: 'left'}, + {to: 'blog', label: '博客', position: 'right'}, { href: 'https://github.com/BetterECNU/SharedCourses', label: 'GitHub', @@ -123,6 +128,10 @@ const config = { label: 'QQ 群聊', href: 'https://qm.qq.com/q/ARnu9JwBfq', }, + { + label: '博客', + to: '/blog', + } ], }, {