Skip to content

Commit

Permalink
2018 NY update.
Browse files Browse the repository at this point in the history
1. Update version to 5.1.4
2. Add attention hint for rebase 6.0.0 to config.yml and console log.
3. Edit links to 6.0.0 in readme file.
  • Loading branch information
ivan-nginx committed Jan 1, 2018
1 parent f7f4138 commit 4f75fe5
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 9 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# <div align="right"><a title="New «NexT» 6.0.0 version [Reloaded]" href="https://github.com/theme-next/hexo-theme-next"><img align="center" width="56" height="56" src="../../blob/master/source/images/logo.svg"></a></div>

<h1 align="center">NexT</h1>
<h1 align="center"><a title="New «NexT» 6.0.0 version [Reloaded]" href="https://github.com/theme-next/hexo-theme-next">NexT</a></h1>

<p align="center">NexT is a high quality elegant <a href="http://hexo.io">Hexo</a> theme. It is crafted from scratch, with love.</p>

[![gitter-image]][gitter-url]
[![mnt-image]][commits-url]
[![mnt-image]](https://github.com/theme-next/hexo-theme-next)
[![travis-image]][travis-url]
[![rel-image]][releases-url]
[![hexo-image]][hexo-url]
Expand Down Expand Up @@ -109,7 +107,7 @@ More NexT examples [here](https://github.com/iissnan/hexo-theme-next/issues/119)
theme: next

### Bugs
For those who also encounter **Error: Cannot find module 'hexo-util'** [issue](https://github.com/iissnan/hexo-theme-next/issues/1490), please check your NPM version.
For those who also encounter **Error: Cannot find module 'hexo-util'** [issue](https://github.com/iissnan/hexo-theme-next/issues/1490), 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.
Expand All @@ -135,7 +133,7 @@ Currently, it is not smooth to update NexT theme from pulling or downloading new
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](https://hexo.io/docs/data-files.html). Because Data files is introduced in Hexo 3, so you need upgrade Hexo to 3.0 (or above) to use this feature.
In order to resolve this issue, NexT will take advantage of Hexo [Data files](https://hexo.io/docs/data-files.html). 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.

Expand Down
10 changes: 9 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# ===============================================================
# ========================= ATTENTION! ==========================
# ===============================================================
# NexT repository is moving here: https://github.com/theme-next
# ===============================================================
# It's rebase to v6.0.0 and future maintenance will resume there
# ===============================================================

# ---------------------------------------------------------------
# Theme Core Configuration Settings
# ---------------------------------------------------------------
Expand Down Expand Up @@ -802,4 +810,4 @@ js: js
images: images

# Theme version
version: 5.1.3
version: 5.1.4
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "isn-next",
"version": "5.1.3",
"version": "5.1.4",
"homepage": "https://github.com/iissnan/hexo-theme-next",
"authors": [
"iissnan <iissnan@gmail.com>"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-theme-next",
"version": "5.1.3",
"version": "5.1.4",
"description": "Elegant theme for Hexo",
"main": "index.js",
"directories": {
Expand Down
10 changes: 10 additions & 0 deletions scripts/merge-configs.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,13 @@ hexo.on('generateBefore', function () {
}
}
});

hexo.on('generateAfter', function () {
hexo.log.warn("===============================================================");
hexo.log.warn("========================= ATTENTION! ==========================");
hexo.log.warn("===============================================================");
hexo.log.warn(" NexT repository is moving here: https://github.com/theme-next ");
hexo.log.warn("===============================================================");
hexo.log.warn(" It's rebase to v6.0.0 and future maintenance will resume there");
hexo.log.warn("===============================================================");
});

0 comments on commit 4f75fe5

Please sign in to comment.