Elegant theme for Hexo.
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
NexT is a high quality elegant Hexo theme. It is crafted from scratch, with love.
More NexT examples here.
1. Change dir to hexo root directory. There must be
and other directories:
sh $ cd hexo $ ls \_config.yml node\_modules package.json public scaffolds source themes
2. Get theme from GitHub. There are several variants to do it:
At most cases stable. Recommended for most users.
$ mkdir themes/next $ curl -s https://api.github.com/repos/iissnan/hexo-theme-next/releases/latest | grep tarball\_url | cut -d '"' -f 4 | wget -i - -O- | tar -zx -C themes/next --strip-components=1
You must define version. Replace
with any version from tags list.
$ mkdir themes/next $ curl -L https://api.github.com/repos/iissnan/hexo-theme-next/tarball/v5.1.2 | tar -zxv -C themes/next --strip-components=1
$ git clone --branch v5.1.2 https://github.com/iissnan/hexo-theme-next themes/next
May be unstable, but includes latest features. Recommended for developers.
$ mkdir themes/next $ curl -L https://api.github.com/repos/iissnan/hexo-theme-next/tarball | tar -zxv -C themes/next --strip-components=1
$ git clone https://github.com/iissnan/hexo-theme-next themes/next
Clone command will give you the whole repository. And in any time you can switch to any tagged release.\ Get tags list:
$ cd themes/next $ git tag -l … v5.0.0 v5.0.1 v5.1.0 v5.1.1 v5.1.2
For example, you want to switch on
tagged release version. Input the following command:
$ git checkout tags/v5.1.0 Note: checking out 'tags/v5.1.0'. … HEAD now on 1f72f68... CSS: Remove global list-style setting of ul
And if you want to switch back on master branch, input this command:
$ git checkout master
3. Set theme in main hexo root config
For those who also encounter Error: Cannot find module 'hexo-util' issue, please check your NPM version.
: Still not work. Please remove
directory and reinstall using
: Please add
to you site package deps.
npm install --save-dev hexo-util
$ cd themes/next $ git pull
Commit your changes or stash them before you can merge
You must Commit, Stash or Discard local changes. See here how to do it.
Currently, it is not smooth to update NexT theme from pulling or downloading new releases. It is quite often running into conflict status when updating NexT theme via
, or need to merge configurations manually when upgrading to new releases.
At present, NexT encourages users to store some options in site's
and other options in theme's
. This approach is applicable, but has some drawbacks: 1. Configurations are splited into two pieces 2. Users maybe confuse which place should be for options
In order to resolve this issue, NexT will take advantage of Hexo Data files. Because Data files is introduced in Hexo 3, so you need upgrade Hexo to 3.0 (or above) to use this feature.
If you prefer Hexo 2.x, you can still use the old approach for configurations. NexT is still compatible with Hexo 2.x.
With this feature, now you can put all your configurations into one place (
), you don't need to touch
. If there are any new options in new releases, you just need to copy those options from
, paste into
and set their values to whatever you want.
directory if it did not exist)
parameter to start server, generate or deploy.\ For example:
hexo clean --config source/_data/next.yml && hexo g --config source/_data/next.yml
. ## Features ### Multiple languages support, including: :cn: Simplified Chinese & Traditional Chinese. :us: English :ru: Russian :fr: French :de: German :jp: Japanese :indonesia: Indonesian :portugal: Portuguese (Brazil) :kr: Korean :it: Italian :netherlands: Dutch :vietnam: Vietnamese Default language is English.
language: en # language: zh-Hans # language: zh-hk # language: zh-tw # language: ru # language: fr-FR # language: de # language: ja # language: id # language: pt # language: pt-BR # language: ko # language: it # language: nl-NL # language: vi
field as following in site
to change to Chinese.
### Comment support. NexT has native support for
comment systems. Add the following snippets to your
duoshuo: enable: true shortname: your-duoshuo-shortname
### Tags page. > Add a tags page contains all tags in your site. - Create a page named
hexo new page "tags"
- Edit tags page, set page type to
title: All tags date: 2014-12-22 12:39:04 type: "tags"
menu: home: / archives: /archives tags: /tags
### Categories page. > Add a categories page contains all categories in your site. - Create a page named
hexo new page "categories"
- Edit categories page, set page type to
title: All categories date: 2014-12-22 12:39:04 type: "categories"
menu: home: / archives: /archives categories: /categories
### Social Media NexT can automatically add links to your Social Media accounts:
social: GitHub: your-github-url Twitter: your-twitter-url Weibo: your-weibo-url DouBan: your-douban-url ZhiHu: your-zhihu-url
### Feed link. > Show a feed link. Set
field in theme's
, as the following value: 1.
will totally disable feed link. 2.
use sites' feed link. This is the default option. Follow the installation instruction in the plugin's README. After the configuration is done for this plugin, the feed link is ready too. 3.
set specific feed link. ### Up to 5 code highlight themes built-in. NexT uses [Tomorrow Theme](https://github.com/chriskempson/tomorrow-theme) with 5 themes for you to choose from. Next use
by default. Have a preview about
: ![Tomorrow Normal Preview](http://iissnan.com/nexus/next/tomorrow-normal.png) ![Tomorrow Night Preview](http://iissnan.com/nexus/next/tomorrow-night.png) Head over to [Tomorrow Theme](https://github.com/chriskempson/tomorrow-theme) for more details. ## Configuration NexT comes with few configurations.
BrowserStack is a cloud-based cross-browser testing tool that enables developers to test their websites across various browsers on different operating systems and mobile devices, without requiring users to install virtual machines, devices or emulators.