Use Notion to write, use hexo to deploy.
You need to do three things:
- Create a notion database to put your posts
- Make a
_notion
folder in your hexo'ssource
folder, and create aconfig.yml
file - Download this project's file and run
./nb -root "your hexo's root path"
You need a config.yml
file in your hexo's source/_notion
folder. The config file must contain the following parts
version: 1 # Now should be fixed to 1
token_v2: # Your notion's token
database:
post:
- 963f630adc2e443b98c7c93378c17176+4312fa9b8f8142a0832a95008cfee6c0
And there're also some optional settings
converter:
force: default # set to true to rerender all pages, otherwise only rerender edited files
render:
checkbox: false # set to true to render "To-do" block to checkbox, otherwise to normal list
user:
locale: en
timezone: Etc/UTC # tz database time zones
This software is released under the Apache-2.0 license.