Skip to content

A Joplin Plugin to export your notes to hexo fluid blog. Automatically save images and generate frontmatter

Notifications You must be signed in to change notification settings

birchtree2/joplin-export-to-hexo-fluid

Repository files navigation

CHN

Step1. 下载Release中的export.note.toHexo.jpl ,并导入到joplin

Step2. 选择笔记后右键,在菜单中点击Export Note to SSG 13dfb38303ace9e6de2355887e3510b4.png

Step3. 在弹出窗口中填写信息 4dd53f52ee8e8031401e021b2965b069.png

  • Project Path: hexo博客根目录的绝对路径。文章会存储在该目录下.\source\_posts, 文章中的图片等资源会存储在.\source\img 参考Hexo Flulid用户手册

​ 下面几个选项用于设置hexo的front matter(参考hexo.io)

  • Title: 自定义博客标题,如果留空,则默认为Joplin里的标题
  • Tags: 标签,用空格隔开
  • Categories: 分类,用逗号隔开,如aaa,bbb表示aaa分类里面的bbb子分类
  • Excerpt: 摘要。如果留空,则以标题作为摘要
  • Front Matter: 补充的front matter指令。如无特别要求,最好留空

输出的frontmatter示例如下

57ed96d062496400d49a25e9e0d13c62.png Step4. 点击Export, 笔记自动导出到博客目录下。之后再手动执行hexo命令即可。如果笔记已经导出过,则不会替换原来的frontmatter,只会更新内容,这种情况下可以把导出界面除博客目录外的内容留空。

可能出现的问题以及解决方案:

  • 右键菜单栏Export Note to SSG不显示: 点击另外一个笔记本,再点击原来的笔记,就可以显示了.(可能是Joplin的bug)
  • 导出笔记本所有笔记后输出目录为空: 参考issue

ENG

Step1. Download export.note.toHexo.jpl from Release and import it into Joplin.

Step2. Right-click on the selected note, and click Export Note to SSG from the menu. 13dfb38303ace9e6de2355887e3510b4.png

Step3. Fill in the required information in the pop-up window: 4dd53f52ee8e8031401e021b2965b069.png

  • Project Path: The absolute path of the root directory of the Hexo blog. The article will be saved in .\source\_posts, and the images and other resources in the article will be saved in .\source\img. Refer to Hexo Flulid User Manual

    For the following options, set the front matter for Hexo (refer to hexo.io):

  • Title: Custom blog title. If left blank, the title in Joplin will be used.

  • Tags: Tags, separated by spaces

  • Categories: Categories, separated by commas. For example, aaa,bbb means bbb subcategory in the aaa category.

  • Excerpt: Summary. If left blank, the title will be used as the summary.

  • Front Matter: Additional front matter instructions. It is recommended to leave it blank unless special requirements.

The example of the output front matter is as follows:

57ed96d062496400d49a25e9e0d13c62.png

Step4. Click Export, and the note will be exported to the blog directory automatically. Then execute the Hexo command manually.If the note has been exported before, the original front matter will not be replaced. Only the content will be updated.In this case, leave the content of the export interface except for the blog directory blank.

Possible problems and solutions:

  • Export Note to SSG not displayed in the right-click menu bar: Click on another notebook and then click on the original note to display it (possibly a Joplin bug).
  • Empty output directory after exporting all notes from the notebook: Refer to issue.

About

A Joplin Plugin to export your notes to hexo fluid blog. Automatically save images and generate frontmatter

Resources

Stars

Watchers

Forks

Packages

No packages published