Useful Plugins for Hexo

Useful plugins for Hexo

  • hexo-deployer-git
  • hexo-generator-json-feed
  • hexo-generator-seo-friendly-sitemap
  • hexo-generator-searchdb

hexo-deployer-git

Git deployer plugin for Hexo.

1
npm install hexo-deployer-git --save

in _config.yml

1
2
3
4
5
6
# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: git
repo: https://github.com/<username>/<username>.github.io.git
branch: master

hexo-generator-json-feed

Hexo plugin to generate a JSON file similar to RSS feed channel structure with posts contents for generic use or consumption.

1
npm i -S hexo-generator-json-feed

in _config.yml

1
2
3
# Json feed
jsonFeed:
limit: 25

hexo-generator-seo-friendly-sitemap

Generate SEO-friendly sitemap.

Inspired by XML Sitemap in Yoast Wordpress SEO Plugin (https://yoast.com).

It will generate separated sitemap files for pages, posts, categories, tags and a XSL stylesheet.

1
npm install hexo-generator-seo-friendly-sitemap --save

in _config.yml

1
2
3
4
sitemap:
path: sitemap.xml
tag: true
category: true

hexo-generator-searchdb

Generate search data for Hexo 3.0. This plugin is used for generating a search index file, which contains all the neccessary data of your articles that you can use to write a local search engine for your blog. Supports both XML and JSON format output.

1
npm install hexo-generator-searchdb --save

in _config.yml

1
2
3
4
5
search:
path: search.xml
field: post
format: html
limit: 10000

See More: Hexo plugins.