Quiver notes => quiver2hexo
sync => Hexo posts => Deploy blog website
If you have Alfred, you can use AlfredQuiver2HexoWorkflow to complete the function of this script.
demo video
- First sync,migrating Quiver notes written by markdown to Hexo blog posts.
- Sync there modified notes to Hexo blog posts after migration finished.
The terminal will output note migration information.
Start the Hexo local server after synchronization finishes, you can view sync effects locally.
Deploy website after synchronization finishes.
- rollback the last sync operation.
- rollback the last deploy operation.
Ps
- Inbox and Trash will not be migrated.
- The cell of the migration notes need to be
markdown
. - Notes resource files will not be migrated.Recommend to have resources on the cloud.
-
Quiver:The Programmer's Notebook
-
Hexo:A fast, simple & powerful blog framework
-
hexo-deployer-git:Git deployer plugin for Hexo.
npm install hexo-deployer-git --save
- Import the markdown file in
hexo_path/source/_posts
into the Quiver, or make a backup. The setup script will clear the directory. - Add a specific tag to the note to be posted, the default is
relHexo
, which of course don't appear in Hexo. - Please use
<!-- more -->
in the note to control excerpt accurately.
# download
git clone https://github.com/summerway/quiver2hexo.git
# setup
cd quiver2hexo && sh setup.sh
Once the setup finishes, an .env
config file is generated.You can change config manually with it.
Command | Description |
---|---|
php sync.php |
Sync the modified QUIVER notes to HEXO |
php sync.php -s |
Start the HEXO local server after synchronization finishes Restart the service if the server exists. |
php sync.php -d |
Deploy after synchronization finishes |
php sync.php -r |
Rollback the last sync operation |
php sync.php -rd |
Rollback the last deploy operation |
php sync.php -h |
help document |