From b1fcde8af1524a5ec17ef40826c8945922bd1643 Mon Sep 17 00:00:00 2001 From: WANG Xuerui Date: Thu, 20 Jul 2023 20:24:58 +0800 Subject: [PATCH] feat(micronews): minimally prepare for incoming micronews content Theme is probably too heavyweight right now (micronews articles are not intended to have contents), but at least the site structure is now able to accommodate all the historical data. --- docusaurus.config.js | 13 +++++++++++++ micronews/2023-07-20-new-home-for-micronews.md | 14 ++++++++++++++ micronews/authors.yml | 1 + 3 files changed, 28 insertions(+) create mode 100644 micronews/2023-07-20-new-home-for-micronews.md create mode 120000 micronews/authors.yml diff --git a/docusaurus.config.js b/docusaurus.config.js index 326c1ae0..94107a49 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -92,6 +92,14 @@ const config = { path: './newsletter', }, ], + [ + '@docusaurus/plugin-content-blog', + { + id: 'blog-micronews', + routeBasePath: 'micronews', + path: './micronews', + }, + ], ], presets: [ @@ -138,6 +146,7 @@ const config = { }, // {to: '/asmdb', label: '汇编指令速查', position: 'left'}, {to: '/newsletter', label: '每周一龙', position: 'left'}, + {to: '/micronews', label: '狗剩微闻', position: 'left'}, {to: '/blog', label: '本站动态', position: 'left'}, { href: 'https://github.com/loongson-community/areweloongyet', @@ -156,6 +165,10 @@ const config = { label: '每周一龙', to: '/newsletter', }, + { + label: '狗剩微闻', + to: '/micronews', + }, { label: '本站动态', to: '/blog', diff --git a/micronews/2023-07-20-new-home-for-micronews.md b/micronews/2023-07-20-new-home-for-micronews.md new file mode 100644 index 00000000..927eff69 --- /dev/null +++ b/micronews/2023-07-20-new-home-for-micronews.md @@ -0,0 +1,14 @@ +--- +slug: new-home-for-micronews +title: 《狗剩微闻》与《咱龙了吗?》正式合并 +authors: [xen0n] +tags: [announcement] +--- + +[《狗剩微闻》][micronews]是 blah blah。 +由于 blah blah 的原因,《狗剩微闻》与本站的维护者们商议后决定合并两个项目。 +blah blah blah + +TODO: 把通稿写完,标题也最好改改 + +[micronews]: https://github.com/loongson-community/micronews diff --git a/micronews/authors.yml b/micronews/authors.yml new file mode 120000 index 00000000..555b8542 --- /dev/null +++ b/micronews/authors.yml @@ -0,0 +1 @@ +../blog/authors.yml \ No newline at end of file