Skip to content

Joplin Publisher

Introduction

Publish Joplin notes to GitHub, and automate the build and deployment process using GitHub Actions.

Usage

GitHub

  1. If you haven't already, sign up for a GitHub account.
  2. Use the template project joplin-blog-template to create a new repository named <github username>.github.iocreate 1create 2create 3
  3. Navigate to Settings > Pages > Build and deployment, and select GitHub Actions setting 1
  4. Create a GitHub token, selecting at least the content and <github username>.github.io repository permissions. Copy the token after creation. setting 2

Joplin

  1. Install the plugin, https://joplinapp.org/plugins/plugin/rxliuli.joplin-publisher/
  2. Open Joplin > Settings > Plugins > Publisher, and set GitHub token/username/repo setting 1
  3. Choose a note and add the tag blogsetting 2
  4. Click Tools > Publish to GitHub to publish publish 1

Wait for a couple of minutes, then you can visit <github username>.github.io to see your published notes.

blog

You can continue to add the blog tag to notes you wish to publish, then run Publish to GitHub again, which will update the notes on the website.

Configuration

Since Hexo is used for rendering, you can configure it in the created GitHub repository. The theme currently used is Fluid, and you can modify the corresponding theme settings.

For example, if you want to change the site's title, you can modify title in _config.yml

hexo-setting-1

To update the background image of the homepage, you can modify index.banner_img in _config.fluid.yml

hexo-setting-2

References

Released under the MIT License.