NexT insists to hide complex details and gives you a simple but flexible config, so you can use it easily.
Cache Support
NexT v6+ allows to cache content generation. Set the value enable
to true
in cache
section in theme config file as following:
1 | # Allow to cache content generation. Introduced in NexT v6.0.0. |
Custom Style Support
Like Next Data files, you can put all your custom styles into one place (hexo/source/_data
).
head
: It’s custom swig styles placed inlayout/_custom/head.swig
.header
: It’s custom swig styles placed inlayout/_custom/header.swig
.sidebar
: It’s custom swig styles placed inlayout/_custom/sidebar.swig
.variables
: It’s variables styles placed insource/css/_variables/custom.styl
.mixins
: It’s mixins styles placed insource/css/_mixins/custom.styl
.styles
: It’s custom styles placed insource/css/_custom/custom.styl
.
Add your custom files in hexo/source/_data
and uncomment needed files under the custom_file_path
section in theme config file as following:
1 | # For example, you want to put your custom styles file |
RSS Support
There are three RSS options in NexT to fit different cases.
Edit theme config file and set the value of rss
:
false
: Disable RSS, which won’t show links on page.- Leave Blank: Use Hexo to generate feed and insert links automatically. You may need to install hexo-generator-feed plugin with npm firstly.
- Concrete URL: This means you have generate Feed in advance.
Creative Commons
NexT supports the display of Creative Commons 4.0 International License in sidebar and post including by
, by-nc
, by-nc-nd
, by-nc-sa
, by-nd
, by-sa
, zero
. These licenses allow creators to communicate which rights they reserve, and which rights they waive for the benefit of recipients or other creators.
You can configure it by editing values in creative_commons
section in theme config file, for example:
1 | creative_commons: |
GitHub Banner
NexT provides Follow me on GitHub
banner in right-top corner.
1 | # Follow me on GitHub banner in right-top corner. |
permalink
→ is the specified link must have full url path.
title
→ is the title and aria-label name.
You can set enable
to true
and add your own GitHub link.
Mobile Devices Adaptation
If you want to reduce padding/margin indents on devices with narrow width, you can enable it by editing values mobile_layout_economy
to true
in theme config file.
1 | mobile_layout_economy: false |
By default NexT uses black-deep (#222
) as the color of android Chrome header panel. You can configure it by editing values with Hex color in android_chrome_color
section in theme config file.
1 | android_chrome_color: “#222” |
Rainbow Safari
If you want to hide sticky headers and color the menu bar on Safari (iOS / macOS), you can set safari_rainbow
to true
. More information here: rainbowsafari.
1 | safari_rainbow: false |
Custom Scrollbar Support
NexT supports the scrollbar personalization.
Only works on webkit based browsers.
1 | custom_scrollbar: false |
Custom Logo Support
NexT supports the site logo personalization.
You can enable it by editing values custom_logo.enable
to true
in theme config file.
1 | custom_logo: |
Then you can add images’s url by editing values in custom_logo.image
section in theme config file.
1 | custom_logo: |
Scheme Mist does not support custom logo setting under 6.0.x version or highter.
Fonts Customization
To solve the unstable of Google Fonts API in some countries, NexT supports setting fonts. By using this feature you can assign URL of fonts library. And NexT gives you 5 specific font settings, they are:
- Global Font: Font used in the whole site.
- Title Font: Font used by titles in articles (H1, H2, H3, H4, H5, H6).
- Article Font: Font used by articles.
- Logo Font: Font used by Logo.
- Code Font: Font used by code blocks in articles.
Each fonts will be used as the first font of this class, NexT will fallback to internal font settings if they are unavalible.
- Non-code Font: Fallback to
"PingFang SC", "Microsoft YaHei", sans-serif
- Code Font: Fallback to
consolas, Menlo, "PingFang SC", "Microsoft YaHei", monospace
Plus each section has a external
attribute, this controls whether to use the font library CDN.
Use this can help you to use fonts installed in system and reduce unnecessary requests.
1 | font: |
Animation Effect
NexT enables animation effect by default which is supported by JavaScript, so it will wait for JavaScript loaded to show content.
If you need speed you can set this section to false
to disable it.
Edit theme config file and set the needed values under the motion
to fit your demand.
1 | # Use velocity to animate everything. |