Here is a collection of frequently asked questions in NexT Issues. If you cannot not find your problem here, please go to NexT Issues to submit your question.
It's a common need to show some part of article in home page and then give a link to full article. NexT gives 3 ways to control how article is shown in home page. In other words, you can use following ways to show summary of articles and a Read More button:
<!-- more -->in your article to break your article manually, which is recommended by Hexo. Recommended
descriptionand set its value to your article summary in front-matter.
Generate summary automatically by adding following section in theme config file:
By default it cuts
150characters from article header, you can set the number by yourself.
It is recommended to use
<!-- more --> (the first way) which can not only control what you want to show better, but also let Hexo's plugins use it easily.
NexT provided a Fonts Customization funtion. If you still need more customization, following change will cover Fonts Customization function. Edit
source/css/_variables/custom.styl in NexT theme dir and add two varibles:
// Title Font, set it to font family you want.
By default NexT has following setting of content width:
- 700px → when screen width < 1200px.
- 800px → when screen width >= 1200px.
- 900px → when screen width >= 1600px.
- In mobile / tablet devices it will use responsive width.
You can change content width by editing CSS style file. Edit
source/css/_variables/custom.styl in theme root directory and add varibles:
Default variables for both Muse and Mist schemes are located in
source/css/_variables/base.styl and defined as:
$content-desktop = 700px
For example, you want wider content width. You may redefine this variables with percentage width:
$content-desktop = 90%
If values will in percents, during opening sidebar will dynamically decrease content width to defined by you percent.
But in standard behaviour, sidebar must displace content from yourself.
To around it, you can to specify content width in
$content-desktop = 50em
Default variables for Pisces (and Gemini) scheme are located in
source/css/_variables/Pisces.styl and defined as:
$content-desktop = 'calc(100% - %s)' % unit($content-desktop-padding / 2, 'px')
$content-desktop value in this schemes is auto-responsive by default. It can be changed to any value too, but for better content visibility recommended to stay it as is.
In this schemes content width was defined on maximum and already balanced: if desktop width will be wider – content width will more narrowed for easier reading. But if you want to make more narrow content width in wider desktops, here is example:
$content-desktop-large = 65em
In fact, Gemini scheme is just fork of Pisces scheme with some style improvements.
Therefore, almost all part of variables from Pisces scheme are imported to Gemini scheme too.
So, if you want to add any variables or styles to both Pisces and Gemini schemes, need to edit values just in Pisces scheme.
Because Hexo has cache, sometimes the nubmer in Tags or Categories page is wrong. If you find this question you can re-generate site's content as following:
db.jsonin site dir.
- Run command
hexo cleanin site dir to clean cache.
- Run command
hexo generatein site dir to re-generte.
After doing those you can run local server to see if the problem was solved.
When you enabled comment service like Disqus, all new page will have comment service automatically. If you want to disable it in one page, just add
comments key to Front-matter and set it's value to
false. Like following:
title: All tags
Set following in site config file:
per_page is the number of articles per page.
Please note that Hexo 3.2 doesn't allow to have duplicated same options. You'd better check weither site config file already has same config. If has, make them together.