强烈推荐 Notion + Next.js + GitHub pages. 效果大家可以看下:
Notion 是最好的笔记app 🙂 平时就用Notion记笔记, 如果想发博客了, 用 Next.js生成静态网页, 直接发布到 GitHub Pages. 全自动! 不用写 code, 非常简单!
Notion as the content management system (CMS)
create a Notion page for blogging and make it public:
All config is defined in site.config.js. Change config values accordingly
All you really need to do to get started is edit rootNotionPageId. It defaults to rendering my sites public notion page 78fc5a4b88d74b0e824e29407e9f1ec1.
// where it all starts — the sites root Notion page (required)
rootNotionPageId: bd32b787e47149f38941174a9c6846b6,
// basic site info (required)
name: Yihui He,
domain: yihui-he.github.io,
Youll want to make your root Notion page public and then copy the link to your clipboard. Then extract the last part of the URL that looks like d1b5dcf8b9ff425b8aef5ce6f0730202, which is your pages Notion iD.
publish with Next.js + Github pages
Next.js is a React static page generator. You can publish the static pages to GitHub pages by:
npm install
npm run deploy-gh
Done!
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END