NotionBlog

command module
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Notion + Blog = NB!

FOSSA Status

Use Notion to write, use hexo to deploy.

中文文档

Usage

You need to do three things:

  1. Create a notion database to put your posts
  2. Make a _notion folder in your hexo's source folder, and create a config.yml file
  3. Download this project's file and run ./nb -root "your hexo's root path"

Config file's format

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

License

This software is released under the Apache-2.0 license.

FOSSA Status

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址