0.1.2 • Published 3 years ago

@liuli-moe/joplin-hexo-blog v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

joplin-hexo-blog

Scenario

Are you as annoyed as I am about the hassle of maintaining notes and blogs in sync at the same time? If you use joplin as a note taking tool and hexo as a blog generator, you can choose this tool to connect them.

Use

Way 1

  1. add the configuration file .joplin-blog.json (refer to configuration for details)
  2. export notes as a blog using the command npx @liuli-moe/joplin-hexo-blog

Way 2

  1. Navigate to the hexo blog directory at the command line
  2. add dependency yarn add @liuli-moe/joplin-hexo-blog
  3. add a configuration file .joplin-blog.json (refer to config for details)
  4. add an npm script file "imp": "joplin-hexo" 5.
  5. Run the command yarn imp 6.
  6. You can see that the source/_posts directory already contains all the exported notes

configuration

configurationtypedescription
hexoPathstringThe location of the hexo directory, which should normally be .
joplinProfilePathstringjoplin personal folder
tokenstringtoken for joplin web service
portnumberjoplin web service's port
tagstringjoplin's blog tag
stickyTopIdListstring[]top note ids