Elegant and powerful theme for Hexo.
CSS JavaScript CoffeeScript
Clone or download
LEAFERx Refactor lean-analytics.swig to use REST API to avoid conflicts with …
…valine (#381)

* Refactor lean-analytics.swig to use REST API to avoid conflicts with valine

* update api url

* fix error message

* distinguish index and post
Latest commit 3a921ce Aug 10, 2018

README.md

Language: 🇺🇸 🇨🇳 🇷🇺

e x T

«NexT» is a high quality elegant Hexo theme. It is crafted from scratch, with love.

Live Preview

More «NexT» examples here.

Installation

Simplest way to install is by cloning whole repository:

$ cd hexo
$ git clone https://github.com/theme-next/hexo-theme-next themes/next

Or you can see detailed installation instructions if you want any other variant.

Plugins

In NexT config now you can find dependencies on each module which was moved to external repositories which can be found by main organization link.

For example, you want to use fancybox in your site. Go to NexT config and see:

# Fancybox
# Dependencies: https://github.com/theme-next/theme-next-fancybox
fancybox: false

Then turn on fancybox and go to «Dependencies» link with installation instructions of this module.

Exceptions

If you use cdn for any plugins, you need to replace your cdn link.

For example, you want to use fancybox and you configured a cdn link. Go to NexT config and see:

vendors:
  # ...
  # Some contents...
  # ...
  fancybox: # Set or update fancybox cdn url.
  fancybox_css: # Set or update fancybox cdn url.

Instead of defining main organization link for updates.

Update

You can update to latest master branch by the following command:

$ cd themes/next
$ git pull

And if you see any error message during update (something like «Commit your changes or stash them before you can merge»), recommended to learn Hexo data files feature.
Howbeit, you can bypass update errors by Commit, Stash or Discard local changes. See here how to do it.

If you want to update from v5.1.x to v6.0.x, read here.

Known Bugs

For those who also encounter «Error: Cannot find module 'hexo-util'», please check your NPM version.

  • > 3: Still not work? Please remove node_modules directory and reinstall using npm install.
  • < 3: Please add hexo-util explicitly via npm install --save-dev hexo-util to you site package deps.

Contributing

Contribution is welcome, feel free to open an issue and fork. Waiting for your pull request.

Feedback

Third party applications