Skip to content

Commit ffa28c1

Browse files
authored
Merge pull request #1898 from ivan-nginx/master
Fixes and enhancements. [13]
2 parents 4888929 + 88c3904 commit ffa28c1

31 files changed

+629
-258
lines changed

README.md

+18-10
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
NexT is a high quality elegant [Hexo](http://hexo.io) theme. It is crafted from scratch, with love.
44

55
[![gitter-image]][gitter-url]
6-
[![mnt-image]](../../commits/master)
6+
[![mnt-image]][commits-url]
77
[![travis-image]][travis-url]
8-
[![rel-image]](../../releases)
8+
[![rel-image]][releases-url]
99
[![hexo-image]][hexo-url]
1010
[![lic-image]](LICENSE)
1111

@@ -18,6 +18,8 @@ NexT is a high quality elegant [Hexo](http://hexo.io) theme. It is crafted from
1818
* Pisces scheme: [Vi](http://notes.iissnan.com) | [Acris](https://blog.mrx.one) | [Rainy](https://rainylog.com)
1919
* Gemini scheme: [Ivan.Nginx](https://almostover.ru) | [Alynx](http://sh.alynx.xyz) | [Raincal](https://raincal.top)
2020

21+
More NexT examples [here](https://github.com/iissnan/hexo-theme-next/issues/119).
22+
2123
## Installation
2224

2325
**1.** Change dir to **hexo root** directory. There must be `node_modules`, `source`, `themes` and other directories:
@@ -29,7 +31,7 @@ NexT is a high quality elegant [Hexo](http://hexo.io) theme. It is crafted from
2931

3032
**2.** Get theme from GitHub. There are several variants to do it:
3133

32-
### Download [latest release version](../../releases/latest).
34+
### Download [latest release version][releases-latest-url].
3335
At most cases **stable**. Recommended for most users.
3436

3537
[![curl-tar-wget-image]][curl-tar-wget-url]
@@ -39,8 +41,8 @@ NexT is a high quality elegant [Hexo](http://hexo.io) theme. It is crafted from
3941
$ 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
4042
```
4143

42-
### Download [tagged release version](../../releases).
43-
You must define version. Replace `v5.1.2` with any version from [tags list](../../tags).
44+
### Download [tagged release version][releases-url].
45+
You must define version. Replace `v5.1.2` with any version from [tags list][tags-url].
4446

4547
[![curl-tar-image]][curl-tar-url]
4648

@@ -55,7 +57,7 @@ NexT is a high quality elegant [Hexo](http://hexo.io) theme. It is crafted from
5557
$ git clone --branch v5.1.2 https://github.com/iissnan/hexo-theme-next themes/next
5658
```
5759

58-
### Download [latest master branch](../../archive/master.zip).
60+
### Download [latest master branch][download-latest-url].
5961
May be **unstable**, but includes latest features. Recommended for developers.
6062

6163
[![curl-tar-image]][curl-tar-url]
@@ -85,7 +87,7 @@ NexT is a high quality elegant [Hexo](http://hexo.io) theme. It is crafted from
8587
v5.1.2
8688
```
8789

88-
For example, you want to switch on `v5.1.0` [tagged release version](../../tags). Input the following command:
90+
For example, you want to switch on `v5.1.0` [tagged release version][tags-url]. Input the following command:
8991

9092
```sh
9193
$ git checkout tags/v5.1.0
@@ -94,7 +96,7 @@ NexT is a high quality elegant [Hexo](http://hexo.io) theme. It is crafted from
9496
HEAD now on 1f72f68... CSS: Remove global list-style setting of ul
9597
```
9698

97-
And if you want to switch back on [master branch](../../commits/master), input this command:
99+
And if you want to switch back on [master branch][commits-url], input this command:
98100

99101
```sh
100102
$ git checkout master
@@ -105,7 +107,7 @@ NexT is a high quality elegant [Hexo](http://hexo.io) theme. It is crafted from
105107
theme: next
106108

107109
### Bugs
108-
For those who also encounter **Error: Cannot find module 'hexo-util'** [issue](../../issues/1490), please check your NPM version.
110+
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.
109111

110112
- `> 3`: Still not work. Please remove `node_modules` directory and reinstall using `npm install`.
111113
- `< 3`: Please add `hexo-util` explicitly via `npm install --save-dev hexo-util` to you site package deps.
@@ -333,5 +335,11 @@ Contribution is welcome, feel free to open an issue and fork. Waiting for your p
333335
[curl-tar-image]: https://img.shields.io/badge/install%20with%20-curl%20%7C%20tar-blue.svg
334336
[curl-tar-wget-image]: https://img.shields.io/badge/install%20with%20-curl%20%7C%20tar%20%7C%20wget-blue.svg
335337
[git-url]: http://lmgtfy.com/?q=linux+git+install
336-
[curl-tar-url]: http://lmgtfy.com/?q=linux+curl+tar+install
338+
[curl-tar-url]: http://lmgtfy.com/?q=linux+curl+tar+install
337339
[curl-tar-wget-url]: http://lmgtfy.com/?q=linux+curl+tar+wget+install
340+
341+
[download-latest-url]: https://github.com/iissnan/hexo-theme-next/archive/master.zip
342+
[releases-latest-url]: https://github.com/iissnan/hexo-theme-next/releases/latest
343+
[releases-url]: https://github.com/iissnan/hexo-theme-next/releases
344+
[tags-url]: https://github.com/iissnan/hexo-theme-next/tags
345+
[commits-url]: https://github.com/iissnan/hexo-theme-next/commits/master

_config.yml

+21-11
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,17 @@ override: false
1010
# Site Information Settings
1111
# ---------------------------------------------------------------
1212

13-
# Put your favicon.ico into `hexo-site/source/` directory.
14-
favicon: /favicon.ico
13+
# To get favicons visit: https://realfavicongenerator.net
14+
# Put your favicons into `hexo-site/source/` or `hexo-site/themes/next/source/images/` directory.
15+
# Default NexT favicons placed in `hexo-site/themes/next/source/images/` directory.
16+
# And if you want to place your icons in `hexo-site/source/`, you must remove `/images` prefix from pathes.
17+
favicon:
18+
small: /images/favicon-16x16.png
19+
medium: /images/favicon-32x32.png
20+
apple_touch_icon: /images/apple-touch-icon.png
21+
safari_pinned_tab: /images/logo.svg
22+
#android_manifest: /images/manifest.json
23+
#ms_browserconfig: /images/browserconfig.xml
1524

1625
# Set default keywords (Use a comma to separate)
1726
keywords: "Hexo, NexT"
@@ -151,11 +160,11 @@ toc:
151160
#creative_commons:
152161

153162
sidebar:
154-
# Sidebar Position, available value: left | right
163+
# Sidebar Position, available value: left | right (only for Pisces | Gemini).
155164
position: left
156165
#position: right
157166

158-
# Sidebar Display, available value:
167+
# Sidebar Display, available value (only for Muse | Mist):
159168
# - post expand on posts automatically. Default.
160169
# - always expand for all pages automatically
161170
# - hide expand only when click on the sidebar toggle icon.
@@ -165,17 +174,16 @@ sidebar:
165174
#display: hide
166175
#display: remove
167176

168-
# Sidebar offset from top menubar in pixels.
177+
# Sidebar offset from top menubar in pixels (only for Pisces | Gemini).
169178
offset: 12
170-
offset_float: 12
171179

172-
# Back to top in sidebar
180+
# Back to top in sidebar (only for Pisces | Gemini).
173181
b2t: false
174182

175-
# Scroll percent label in b2t button
183+
# Scroll percent label in b2t button.
176184
scrollpercent: false
177185

178-
# Enable sidebar on narrow view
186+
# Enable sidebar on narrow view (only for Muse | Mist).
179187
onmobile: false
180188

181189

@@ -572,7 +580,7 @@ tabs:
572580
#! UNLESS YOU KNOW WHAT YOU ARE DOING
573581
#! ---------------------------------------------------------------
574582

575-
# Motion
583+
# Use velocity to animate everything.
576584
motion:
577585
enable: true
578586
async: false
@@ -588,6 +596,8 @@ motion:
588596
post_header: slideDownIn
589597
post_body: slideDownIn
590598
coll_header: slideLeftIn
599+
# Only for Pisces | Gemini.
600+
sidebar: slideUpIn
591601

592602
# Fancybox
593603
fancybox: true
@@ -717,4 +727,4 @@ js: js
717727
images: images
718728

719729
# Theme version
720-
version: 5.1.2
730+
version: 5.1.3

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "isn-next",
3-
"version": "5.1.2",
3+
"version": "5.1.3",
44
"homepage": "https://github.com/iissnan/hexo-theme-next",
55
"authors": [
66
"iissnan <[email protected]>"

layout/_layout.swig

-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@
6666
{% set scheme_script = '_scripts/schemes/' + theme.scheme | lower + '.swig' %}
6767
{% include scheme_script %}
6868

69-
{% include '_scripts/pages/post-details.swig' %}
70-
7169
{% block script_extra %}{% endblock %}
7270

7371
{% include '_scripts/boostrap.swig' %}

layout/_macro/post-copyright.swig

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<ul class="post-copyright">
22
<li class="post-copyright-author">
33
<strong>{{ __('post.copyright.author') + __('symbol.colon') }}</strong>
4-
{{ config.author }}
4+
{{ post.author | default(config.author) }}
55
</li>
66
<li class="post-copyright-link">
77
<strong>{{ __('post.copyright.link') + __('symbol.colon') }}</strong>
8-
<a href="{{ post.permalink }}" title="{{ post.title }}">{{ post.permalink }}</a>
8+
<a href="{{ post.url | default(post.permalink) }}" title="{{ post.title }}">{{ post.url | default(post.permalink) }}</a>
99
</li>
1010
<li class="post-copyright-license">
1111
<strong>{{ __('post.copyright.license_title') + __('symbol.colon') }} </strong>

0 commit comments

Comments
 (0)