Updated 14/09/2025
Sweet plugins and configuration settings for Hexo.
hexo-deployer-git
yarn add hexo-deployer-git
Once installed add the following to the root _config.yml
1 | # Deployment |
This then works with the commands:
hexo generate
(short handhexo g
)hexo deploy
(short handhexo d
)
hexo-browsersync
yarn add hexo-browsersync
This then works with the command hexo serve
(short hand hexo s
)
Google Analytics
Then go to your theme’s main _config.yml
and look for a property called google_analytics. Fill in your tracking ID.
google_analytics: UA-0000000-0
Search
npm install hexo-generator-search
SEO Tools
Install tools hexo-generator-sitemap
and hexo-generator-robotstxt
1 | npm install hexo-generator-sitemap hexo-generator-robotstxt --save |
Then configure in _config.yml (root Hexo config, not theme) with
1 | sitemap: |
and
1 | robotstxt: |
Now run hexo generate
, you can run hexo clean
but be careful as this will delete anything you have manually added to the public
folder.