



(2 ratings)
| Number of watchers on Github | 11280 |
| Number of open issues | 73 |
| Average time to close an issue | 4 days |
| Main language | CSS |
| Average time to merge a PR | 3 days |
| Open pull requests | 52+ |
| Closed pull requests | 67+ |
| Last commit | over 1 year ago |
| Repo Created | over 4 years ago |
| Repo Last Updated | over 1 year ago |
| Size | 13 MB |
| Homepage | http://notes.iiss... |
| Organization / Author | iissnan |
| Latest Release | v5.1.4 |
| Contributors | 45 |
| Page Updated | 2018-03-12 |
| Do you use hexo-theme-next? Leave a review! | |
| View open issues (73) | |
| View hexo-theme-next activity | |
| View on github | |
| Fresh, new opensource launches 🚀🚀🚀 | |
|
Trendy new open source projects in your inbox!
View examples
|
|
NexT v6.0.0 here :triangular_flag_on_post:
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 node_modules, source, themes and other directories:
$ 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 v5.1.2 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 v5.1.0 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 _config.yml file:
theme: next
For those who also encounter Error: Cannot find module 'hexo-util' issue, 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.$ 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 git pull, or need to merge configurations manually when upgrading to new releases.
At present, NexT encourages users to store some options in site's _config.yml and other options in theme's _config.yml. This approach is applicable, but has some drawbacks:
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 (source/_data/next.yml), you don't need to touch next/_config.yml. If there are any new options in new releases, you just need to copy those options from next/_config.yml, paste into _data/next.yml and set their values to whatever you want.
next.yml in site's source/_data directory (create _data directory if it did not exist)_config.yml and theme's _config.yml into next.yml.--config source/_data/next.yml parameter to start server, generate or deploy.\
For example: hexo clean --config source/_data/next.yml && hexo g --config source/_data/next.yml.: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
Set language field as following in site _config.yml to change to Chinese.
language: zh-Hans
NexT has native support for DuoShuo and Disqus comment systems.
Add the following snippets to your _config.yml:
duoshuo:
enable: true
shortname: your-duoshuo-shortname
OR
disqus_shortname: your-disqus-shortname
Add a tags page contains all tags in your site.
Create a page named tags
hexo new page "tags"
Edit tags page, set page type to tags.
title: All tags
date: 2014-12-22 12:39:04
type: "tags"
Add tags to theme _config.yml:
menu:
home: /
archives: /archives
tags: /tags
Add a categories page contains all categories in your site.
Create a page named categories
hexo new page "categories"
Edit categories page, set page type to categories.
title: All categories
date: 2014-12-22 12:39:04
type: "categories"
Add categories to theme _config.yml:
menu:
home: /
archives: /archives
categories: /categories
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
Show a feed link.
Set rss field in theme's _config.yml, as the following value:
rss: false will totally disable feed link.rss: 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.
rss: http://your-feed-url set specific feed link.
NexT uses Tomorrow Theme with 5 themes for you to choose from.
Next use normal by default. Have a preview about normal and night:

Head over to Tomorrow Theme for more details.
NexT comes with few configurations.
# Menu configuration.
menu:
home: /
archives: /archives
# Favicon
favicon: /favicon.ico
# Avatar (put the image into next/source/images/)
# can be any image format supported by web browsers (JPEG,PNG,GIF,SVG,..)
avatar: /default_avatar.png
# Code highlight theme
# available: normal | night | night eighties | night blue | night bright
highlight_theme: normal
# Fancybox for image gallery
fancybox: true
# Specify the date when the site was setup
since: 2013
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.
Contribution is welcome, feel free to open an issue and fork. Waiting for your pull request.
For full changes, see the comparison between 5.1.3 and 5.1.4
Need to update it manually!
In NexT _config.yml:
-# Put your favicon.ico into `hexo-site/source/` directory.
-favicon: /favicon.ico
# To get favicons visit: https://realfavicongenerator.net
# Put your favicons into `hexo-site/source/` or `hexo-site/themes/next/source/images/` directory.
# Default NexT favicons placed in `hexo-site/themes/next/source/images/` directory.
# And if you want to place your icons in `hexo-site/source/`, you must remove `/images` prefix from pathes.
favicon:
small: /images/favicon-16x16.png
medium: /images/favicon-32x32.png
apple_touch_icon: /images/apple-touch-icon.png
safari_pinned_tab: /images/logo.svg
#android_manifest: /images/manifest.json
#ms_browserconfig: /images/browserconfig.xml
-# Motion
-use_motion: true
# Use velocity to animate everything.
motion:
enable: true
async: false
transition:
# Transition variants:
# fadeIn | fadeOut | flipXIn | flipXOut | flipYIn | flipYOut | flipBounceXIn | flipBounceXOut | flipBounceYIn | flipBounceYOut
# swoopIn | swoopOut | whirlIn | whirlOut | shrinkIn | shrinkOut | expandIn | expandOut
# bounceIn | bounceOut | bounceUpIn | bounceUpOut | bounceDownIn | bounceDownOut | bounceLeftIn | bounceLeftOut | bounceRightIn | bounceRightOut
# slideUpIn | slideUpOut | slideDownIn | slideDownOut | slideLeftIn | slideLeftOut | slideRightIn | slideRightOut
# slideUpBigIn | slideUpBigOut | slideDownBigIn | slideDownBigOut | slideLeftBigIn | slideLeftBigOut | slideRightBigIn | slideRightBigOut
# perspectiveUpIn | perspectiveUpOut | perspectiveDownIn | perspectiveDownOut | perspectiveLeftIn | perspectiveLeftOut | perspectiveRightIn | perspectiveRightOut
post_block: fadeIn
post_header: slideDownIn
post_body: slideDownIn
coll_header: slideLeftIn
# Only for Pisces | Gemini.
sidebar: slideUpIn
Removed offset_float option:
# Sidebar offset from top menubar in pixels (only for Pisces | Gemini).
offset: 12
- offset_float: 12
# When running the site in a subdirectory (e.g. domain.tld/blog), remove the leading slash from link value (/archives -> archives).
# Usage: `Key: /link/ || icon`
# Key is the name of menu item. If translate for this menu will find in languages - this translate will be loaded; if not - Key name will be used. Key is case-senstive.
# Value before `||` delimeter is the target link.
# Value after `||` delimeter is the name of FontAwesome icon. If icon (with or without delimeter) is not specified, question icon will be loaded.
menu:
- home: /
- #categories: /categories/
- #about: /about/
- #archives: /archives/
- #tags: /tags/
- #sitemap: /sitemap.xml
- #commonweal: /404/
+ home: / || home
+ #about: /about/ || user
+ #tags: /tags/ || tags
+ #categories: /categories/ || th
+ #archives: /archives/ || archive
+ #schedule: /schedule/ || calendar
+ #sitemap: /sitemap.xml || sitemap
+ #commonweal: /404/ || heartbeat
# Enable/Disable menu icons.
menu_icons:
enable: true
- #KeyMapsToMenuItemKey: NameOfTheIconFromFontAwesome
- home: home
- about: user
- categories: th
- schedule: calendar
- tags: tags
- archives: archive
- sitemap: sitemap
- commonweal: heartbeat
# Social Links.
# Usage: `Key: permalink || icon`
# Key is the link label showing to end users.
# Value before `||` delimeter is the target permalink.
# Value after `||` delimeter is the name of FontAwesome icon. If icon (with or without delimeter) is not specified, globe icon will be loaded.
#social:
- #LinkLabel: Link
+ #GitHub: https://github.com/yourname || github
+ #E-Mail: mailto:[email protected] || envelope
+ #Google: https://plus.google.com/yourname || google
+ #Twitter: https://twitter.com/yourname || twitter
+ #FB Page: https://www.facebook.com/yourname || facebook
+ #VK Group: https://vk.com/yourname || vk
+ #StackOverflow: https://stackoverflow.com/yourname || stack-overflow
+ #YouTube: https://youtube.com/yourname || youtube
+ #Instagram: https://instagram.com/yourname || instagram
+ #Skype: skype:yourname?call|chat || skype
social_icons:
enable: true
icons_only: false
transition: false
- # Icon Mappings.
- # KeyMapsToSocialItemKey: NameOfTheIconFromFontAwesome
- GitHub: github
- E-Mail: envelope
- Google: google
- Twitter: twitter
- FB Page: facebook
- VK Group: vk
- Skype: skype
- YouTube: youtube
- Instagram: instagram
- StackOverflow: stack-overflow
- Weibo: weibo
-# Specify the date when the site was setup
-#since: 2015
-# icon between year and author @Footer
-authoricon: heart
-# Footer `powered-by` and `theme-info` copyright
-copyright: true
footer:
# Specify the date when the site was setup.
# If not defined, current year will be used.
#since: 2015
# Icon between year and copyright info.
icon: user
# If not defined, will be used `author` from Hexo main config.
copyright:
# -------------------------------------------------------------
# Hexo link (Powered by Hexo).
powered: true
theme:
# Theme & scheme info link (Theme - NexT.scheme).
enable: true
# Version info of NexT after scheme info (vX.X.X).
version: true
# -------------------------------------------------------------
# Any custom text can be defined here.
#custom_text: Hosted by <a target="_blank" href="https://pages.github.com">GitHub Pages</a>
.travis.yml: ignore *.md files and docs directory. (3602b927cb04a0fe9862dad7b13f496cec98906d)<kbd> tag style. (10f5c496c6f06ac0ee5190a428277f46d5e290e8)post_wordcount.totalcount option. (#1812)motion transition variants. (#1829)post_wordcount.separated_meta option. (#1812)page_class & fix sidebar affix on archives page. (#1825)avatar not visible in sidebar for now.. (#1837)flex style from global sidebar style to Pisces and Gemini schemes only. (#1846)han.woff2 404 not found. (000cd69d994ab3cba27f26926fbd895fd711797a)font settings & disabled font option by default. (e5c0956c476f08ba184ba5d006051d38db116a6f)For full changes, see the comparison between 5.1.2 and 5.1.3
diff
-gentie_productKey:
tencent-mta to 2.0.4 and using https #1658offset_float default to 12 px.index_with_subtitle option). #1522canvas-ribbon (Pisces only). #1565save_scroll option. #1574canvas_lines and canvas_sphere to background animation. #1595separated_meta in post-wordcount. #1649rating support. #1649modern style, flat style & refactor note basic style. #1697social icons_only & transition option. #1697RTL languages support for posts & pages. #1697wechat, reward and copyright features & added bitcoin donate. #1697mobile_layout_economy option. #1697tabs tag. #1697label tag. #1697Gemini scheme. #1697onmobile option) #1717scroll_percent now count only content div. #1574utils.js error #1585three_waves bug #1593scroll_percent. #1615 3bfb633119bb7f7d8020b6060eafb2fb5a15db26canvas-ribbon cause scroll not working #1640mathjax official one because the official cdn has been closed #1712For full changes, see the comparison between 5.1.1 and 5.1.2