Adds a command to jekyll to import the content of a notino database to the
_posts
folder. Updates existing posts, but doesn't delete them.
Add the following to your site's Gemfile
gem 'jekyll-notion-import'
Add the following to your jekyll config:
plugins:
- jekyll-notion-import
Get a token from Notion by creating an integration and giving it read permissions on the database you want to import.
Add the token as an env var locally (via something like direnv), or if running this command remotely, add it to your build environment:
export NOTION_TOKEN=<token value>
In your _config.yml
, add the section that defines the database. THis currently
uses the same format as laid out here
jekyll notion_import
Enrique Arias for