Code Monkey home page Code Monkey logo

hexo-evernote-html's Introduction

将印象笔记导出的 html 直接在 hexo 中使用,暂不支持国际版

使用方法

一、创建 hexo 目录

hexo init blog
cd blog

二、安装本插件

npm install --save hexo-evernote-html

输入hexo --help查看,如果有ever选项说明安装成功

Usage: hexo <command>

Commands:
  clean     Remove generated files and cache.
  config    Get or set configurations.
  deploy    Deploy your website.
  ever      Evernote generator.                 <- 该指令
  ... 

三、在 hexo 目录下创建一个 everntoe 文件夹

blog
   evernote  <- 创建它
   source
   themes
   ...

从印象笔记客户端选择想要导出的笔记导出 html 格式到 evernote 文件夹
PS:mac 端的 html 会被导入到 evernote/我的笔记/,不过没有关系

四、修改_config.yamlpost_asset_foler的值为true
因为笔记的附件(包括图片)将使用相对路径:

# 默认是 false
post_asset_folder: true 

五、构建博客,不要使用 hexo generate

hexo ever

静态页面将生成在 public 目录,可以通过 http-server 来预览

hs public

六、部署博客,参考部署 | Hexo


清理的指令还是 hexo clean,扩展了对 <hexo dir>/source的清理,
如果你的./source本身保存有文章,请先保存到印象笔记中,以免被删除。

hexo serve 不管用,需要重写该指令,也用不到。

可以通过笔记标题来分layout,比如:

  • foo.page => layout: page
  • bar.draft => layout: draft
  • baz => layout: post 默认为 post

Todo

  • 添加通过印象笔记存储 _config.yaml 的支持

hexo-evernote-html's People

Contributors

dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.