theme-next / hexo-theme-next Goto Github PK
View Code? Open in Web Editor NEWElegant and powerful theme for Hexo.
Home Page: https://theme-next.org
License: Other
Elegant and powerful theme for Hexo.
Home Page: https://theme-next.org
License: Other
The bottom displays the word count information.
The bottom is blank.
NexT Version:
[] Latest Master branch.
[x] Latest Release version.
[] Old version -
NexT Scheme:
[x] All schemes
[] Muse
[] Mist
[] Pisces
[] Gemini
no underlined blank after category name,like this:
NameOfACategory
--------------------------(no extra blank)
NameOfACategory
---------------------------(an extra blank)
v8.9.1
5.5.1
{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"hexo": {
"version": "3.4.4"
},
"dependencies": {
"hexo": "^3.4.4",
"hexo-deployer-ftpsync": "^0.1.1",
"hexo-deployer-git": "^0.3.1",
"hexo-generator-archive": "^0.1.4",
"hexo-generator-category": "^0.1.3",
"hexo-generator-feed": "^1.2.2",
"hexo-generator-index": "^0.2.0",
"hexo-generator-search": "^2.1.1",
"hexo-generator-tag": "^0.2.0",
"hexo-renderer-ejs": "^0.3.0",
"hexo-renderer-markdown-it-plus": "^1.0.2",
"hexo-renderer-stylus": "^0.3.1",
"hexo-server": "^0.2.0",
"hexo-symbols-count-time": "^0.2.0",
"markdown-it-toc-and-anchor": "^4.1.2"
}
}
hexo: 3.4.4
hexo-cli: 1.0.4
os: Linux 4.13.0-25-generic linux x64
http_parser: 2.7.0
node: 8.9.1
v8: 6.1.534.47
uv: 1.15.0
zlib: 1.2.11
ares: 1.10.1-DEV
modules: 57
nghttp2: 1.25.0
openssl: 1.0.2m
icu: 59.1
unicode: 9.0
cldr: 31.0.1
tz: 2017b
NexT Version:
[x] Latest Master branch.
[] Latest Release version.
[] Old version -
NexT Scheme:
[] All schemes
[] Muse
[] Mist
[] Pisces
[x] Gemini
Is it possible to be add gap between comment and the footer?
NexT Version:
[x] Latest Master branch.
[] Latest Release version.
[] Old version -
NexT Scheme:
[] All schemes
[x] Muse
[] Mist
[] Pisces
[] Gemini
The Custome test doesn't appear at the end of the page.
First I updated the theme to v6.0.1
Then I just edited the custome text in next theme's _config.yml
like this:
custom_text: Hosted by <a target="_blank" href="https://pages.github.com">GitHub Pages</a> & <a target="_blank" href="https://cloudflare.com">Cloudflare</a>
But it doesn't appear.
node: v9.4.0
npm: 5.6.0
"dependencies": {
"hexo": "^3.4.4",
"hexo-deployer-git": "^0.3.1",
"hexo-generator-archive": "^0.1.5",
"hexo-generator-category": "^0.1.3",
"hexo-generator-feed": "^1.2.2",
"hexo-generator-index": "^0.2.0",
"hexo-generator-searchdb": "^1.0.8",
"hexo-generator-tag": "^0.2.0",
"hexo-renderer-ejs": "^0.3.0",
"hexo-renderer-marked": "^0.3.2",
"hexo-renderer-stylus": "^0.3.1",
"hexo-server": "^0.2.0",
"hexo-tag-aplayer": "^2.0.7"
}
v3.4.4
NexT Version:
NexT Scheme:
$ node -v
v4.8.7
$ npm -v
2.15.11
hexo-cli: 1.0.4
os: Windows_NT 6.1.7601 win32 x64
http_parser: 2.7.0
node: 4.8.7
v8: 4.5.103.53
uv: 1.9.1
zlib: 1.2.11
ares: 1.10.1-DEV
icu: 56.1
modules: 46
openssl: 1.0.2n
NexT Version:
[x] Latest Master branch.
[] Latest Release version.
[] Old version -
NexT Scheme:
[] All schemes
[] Muse
[] Mist
[] Pisces
[x] Gemini
移动端页面左滑可以看得到白边,魅族Pro6手机
When scrolling down pages sidebar should be fixed to top like below
In the new page(not the post) I created, sidebar has a relative position
NexT Version:
[x] Latest Master branch.
[] Latest Release version.
[] Old version -
NexT Scheme:
[] All schemes
[] Muse
[] Mist
[] Pisces
[x] Gemini
menu-item-active
styles to menu in Muse and Mist schemes. In Pisces and Gemini active menu was worked fine + was small dot.In Next _config.yml
:
menu_settings:
badges: true
In Next _config.yml
:
# Posts / Categories / Tags in sidebar.
site_state: false
menu_icons.enable
- replaced with menu_settings.icons
.In Next _config.yml
:
-# Enable/Disable menu icons.
-menu_icons:
- enable: true
+# Enable/Disable menu icons / item badges.
+menu_settings:
+ icons: true
Error message of Chrome:
theme-next.org didn’t send any data.
ERR_EMPTY_RESPONSE
Disqus works after loading.
Disqus does not show up at the end of blogs.
node -v
v8.9.4
npm -v
5.6.0
hexo-cli: 1.0.4
os: Darwin 14.5.0 darwin x64
http_parser: 2.7.0
node: 8.9.4
v8: 6.1.534.50
uv: 1.15.0
zlib: 1.2.11
ares: 1.10.1-DEV
modules: 57
nghttp2: 1.25.0
openssl: 1.0.2n
icu: 59.1
unicode: 9.0
cldr: 31.0.1
tz: 2017b
{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"hexo": {
"version": "3.4.4"
},
"dependencies": {
"hexo": "^3.2.0",
"hexo-deployer-git": "^0.3.1",
"hexo-generator-archive": "^0.1.4",
"hexo-generator-category": "^0.1.3",
"hexo-generator-index": "^0.2.0",
"hexo-generator-tag": "^0.2.0",
"hexo-renderer-ejs": "^0.3.0",
"hexo-renderer-marked": "^0.3.0",
"hexo-renderer-stylus": "^0.3.1",
"hexo-server": "^0.2.0"
}
}
NexT Version:
[] Latest Master branch.
[] Latest Release version.
[] Old version -
NexT Scheme:
[] All schemes
[x] Muse
[] Mist
[] Pisces
[] Gemini
chrome
display inline formula using hexo-renderer-pandoc
with the mathjax support in the theme's _config.yml
.
hexo-renderer-marked
, and mathjax: enable: true
in the theme's _config.yml
:mathjax: enable: true
in the theme's _config.yml
, and npm uninstall hexo-renderer-marked --save
and Remove the if(config.template) args.push("--template=" + config.template);
in hexo\node_modules\hexo-renderer-pandoc\index.js
using npm install hexo-renderer-pandoc --save
(the known issue):mathjax: enable: true
in the theme's _config.yml
, and npm uninstall hexo-renderer-marked --save
and Remove the if(config.template) args.push("--template=" + config.template);
in index.js
using npm install hexo-renderer-pandoc --save
, and try to modify mathjax in /themes/next/source/js/custom.js
, and add <script type="text/javascript" src="/js/custom.js"></script>
in front of /body
in /layout/_layout.swig
:the modify in /themes/next/source/js/custom.js
is here,
but i don't known how to merge the code in layout/_third-party/mathjax.swig, just a suggestion
//MathJax
window.MathJax = {
AuthorInit: function () {
MathJax.Hub.Register.StartupHook("Begin",function () {
MathJax.Hub.Queue(function() {
var all = MathJax.Hub.getAllJax(), i;
for (i=0; i < all.length; i += 1) {
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
});
}
};
window.MathJax = {
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
processEscapes: true,
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
}
};
// <script type="text/javascript" src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
// jQuery
$.getScript('https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML', function()
{
// script is now loaded and executed.
// put your dependent JS here.
});
TESTING inline formula: $R{m \times n} = U{m \times m} S{m \times n} V{n \times n}’$,$d_{1}=\frac{\ln(S_{t}/K) +(r+\sigma^{2}/2)(T-t)}{\sigma\sqrt{T-t}}$。This is an example for $x_mu$ and $y_mu$. This is an example for $x_{mu}$ and $y_{mu}$.
This is an example for $x\_mu$ and $y\_mu$.
$$
\begin{eqnarray}
\nabla\cdot\vec{E} &=& \frac{\rho}{\epsilon_0} \\
\nabla\cdot\vec{B} &=& 0 \\
\nabla\times\vec{E} &=& -\frac{\partial B}{\partial t} \\
\nabla\times\vec{B} &=& \mu_0\left(\vec{J}+\epsilon_0\frac{\partial E}{\partial t} \right)
\end{eqnarray}
$$
$$T(n) = \Theta(n) + \sum{i=0}^{n-1}{O({n}{i}^2)}$$
$$T(n) = \Theta(n) + \sum_{i=0}^{n-1}{O({n}_{i}^2)}$$
$$T(n) = \Theta(n) + \sum\_{i=0}^{n-1}{O({n}\_{i}^2)}$$
NexT Version:
[x] Latest Master branch.
[x] Latest Release version.
[] Old version -
NexT Scheme:
[] All schemes
[] Muse
[] Mist
[x] Pisces
[] Gemini
Message plug-ins duoshuo
has been discontinued on June 1, 2017.I think it's time to remove the related code to keep it clean and avoid misleading newbies.
display the comments and login box
Microsoft Edge 40.15063.0.0
Microsoft EdgeHTML 15.15063
the known issue in gitment is #50
http://saili.science/2016/04/04/how-to-research/
NexT Version:
[] Latest Master branch.
[x] Latest Release version.
[] Old version -
NexT Scheme:
[] All schemes
[] Muse
[] Mist
[x] Pisces
[] Gemini
Putting custom favicon.ico into hexo-site/source
didn't work after updating to NexT v6.0.0.
Normal display of website
Failed to load resource: the server responded with a status of 404 (Not Found)
/lib/pace/pace-theme-minimal.min.css?v=1.0.2 Failed to load resource: the server responded with a status of 404 (Not Found)
/lib/fancybox/source/jquery.fancybox.css?v=2.1.5 Failed to load resource: the server responded with a status of 404 (Not Found)
/lib/Han/dist/han.min.css?v=3.3 Failed to load resource: the server responded with a status of 404 (Not Found)
pace.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
/lib/pace/pace-theme-minimal.min.css?v=1.0.2 Failed to load resource: the server responded with a status of 404 (Not Found)
/lib/Han/dist/han.min.css?v=3.3 Failed to load resource: the server responded with a status of 404 (Not Found)
/lib/fancybox/source/jquery.fancybox.css?v=2.1.5 Failed to load resource: the server responded with a status of 404 (Not Found)
www.iskei.cn/:121 Uncaught SyntaxError: Unexpected token ,
jquery.fancybox.pack.js Failed to load resource: the server responded with a status of 404 (Not Found)
needsharebutton.js Failed to load resource: the server responded with a status of 404 (Not Found)
pace-theme-minimal.min.css Failed to load resource: the server responded with a status of 404 (Not Found)
han.min.css Failed to load resource: the server responded with a status of 404 (Not Found)
jquery.fancybox.css Failed to load resource: the server responded with a status of 404 (Not Found)
utils.js?v=6.0.1:3 Uncaught ReferenceError: NexT is not defined
at utils.js?v=6.0.1:3
NexT Version:
[] Latest Master branch.
[x] Latest Release version.
[] Old version -
NexT Scheme:
[x] All schemes
[] Muse
[] Mist
[] Pisces
[] Gemini
Math script won't be loaded with no math in tags, achives pages etc.
Math sript loaded in tags, achives pages etc. even if there is no math in homepage.
enable
of math
hexo clean && hexo g -d
This line, for now, per_page
default to true
, then not theme.math.per_page
will befalse
.
And if we are at homepage now, page.total
will be true
, therefore even if page.mathjax
is false
, the(page.total or page.mathjax)
still be true
.
Finally, after those determinations, the if not theme.math.per_page or (page.total or page.mathjax)
will return true
and load the math script.
Since the tags and achives pages has the post.total
property, and it will load the math script in tags and achives pages.
NexT Version:
[x] Latest Master branch.
[] Latest Release version.
[] Old version -
NexT Scheme:
[x] All schemes
[] Muse
[] Mist
[] Pisces
[] Gemini
# Math Equations Render Support
math:
enable: true
# Default(true) will load mathjax/katex script on demand
# That is it only render those page who has 'mathjax: true' in Front Matter.
# If you set it to false, it will load mathjax/katex srcipt EVERY PAGE.
per_page: true
#engine: mathjax
engine: katex
And there is the screenshot:
I have no math in my homepage, but it still load the Katex CSS.
And in achives too:
I today created account in GitLocalize and add there NexT repository.
For now supported filters are:
languages
directory.docs
directory.There is some troubles with zh-tw
, zh-hk
and zh-hk-Hans
(I just not understand this difference), need to resolve this and refactor language names in NexT.
So, i can invite anyone who want to accept to translation team in GitLocalize for NexT.
Just let me know what you wish to join and i'll invite you.
Render success in web & mobile circumstance.
Render success in web but failed in mobile circumstance using <script type="text/javascript" src="http://www.xiami.com/widget/player-single?uid=0&sid=1775449134&mode=js"></script>
in .md
file.
And the post content in mobile with muse scheme are not text-align=justify
.
NexT Version:
[] Latest Master branch.
[x] Latest Release version.
[] Old version -
NexT Scheme:
[] All schemes
[x] Muse
[] Mist
[] Pisces
[] Gemini
Program should do it out of the box, it is suggested that the next lib into source, avoid users touch not clear mind for the first time, but also caused some trouble to the person that often use, can download the lib
disable sidebar in some folder or single page
sidebar is enable in all pages
v8.9.4
5.6.0
hexo: 3.4.4
hexo-cli: 1.0.4
NexT Version:
[x] Latest Master branch.
[] Latest Release version.
[] Old version -
NexT Scheme:
[] All schemes
[x] Muse
[] Mist
[] Pisces
[] Gemini
# Redefine custom file paths. Introduced in NexT v6.0.2.
# If commented, will be used default custom file paths.
# For example, you want to put your custom styles file
# outside theme directory in root `source/_data`, set
# `styles: source/_data/styles.styl`
#custom_file_path:
# Default paths: layout/_custom/*
#head: source/_data/head.swig
#header: source/_data/header.swig
#sidebar: source/_data/sidebar.swig
# Default path: source/css/_variables/custom.styl
#variables: source/_data/variables.styl
# Default path: source/css/_mixins/custom.styl
#mixins: source/_data/mixins.styl
# Default path: source/css/_custom/custom.styl
#styles: source/_data/styles.styl
sidebar:
# Sidebar Position, available value: left | right (only for Pisces | Gemini).
position: left
#position: right
# Sidebar Display, available value (only for Muse | Mist):
# - post expand on posts automatically. Default.
# - always expand for all pages automatically
# - hide expand only when click on the sidebar toggle icon.
# - remove Totally remove sidebar including sidebar toggle.
display: post
#display: always
#display: hide
#display: remove
aa
To be simple:
Let's see here:
hexo-theme-next/source/js/src/algolia-search.js
Lines 6 to 8 in e12bb0b
It needs an application key and etc.
So, where does it come from? Here:
hexo-theme-next/layout/_partials/head/head.swig
Lines 124 to 130 in 1cb4d08
It should be an application key field in the config.
Lines 641 to 648 in 7e71b4b
Without it, it will complain about the Algolia Setting is invalid.
In fact, in the NexT 5.1.x, there is a doc describe the application keys:
page reder correctly
css file , js file not found (404)
mkdir github_page
cd github_page
hexo init
git clone https://github.com/theme-next/hexo-theme-next themes/next
cd themes/next
git tag -l
//v6.0.0
//v6.0.1
git checkout tags/v6.0.1
//commit id da9cdd2
then back to github_page
folder
open root _config.yml
file
config theme and deploy
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: next
# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: git
repo: [email protected]:MARGI3/margi3.github.io.git
branch: master
hexo g
npm install hexo-deployer-git --save
//+ [email protected]
//added 16 packages in 4.365s
hexo d
these all my steps
v8.9.4
5.6.0
{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"hexo": {
"version": "3.4.4"
},
"dependencies": {
"hexo": "^3.2.0",
"hexo-deployer-git": "^0.3.1",
"hexo-generator-archive": "^0.1.4",
"hexo-generator-category": "^0.1.3",
"hexo-generator-index": "^0.2.0",
"hexo-generator-tag": "^0.2.0",
"hexo-renderer-ejs": "^0.3.0",
"hexo-renderer-marked": "^0.3.0",
"hexo-renderer-stylus": "^0.3.1",
"hexo-server": "^0.2.0"
}
}
hexo: 3.4.4
hexo-cli: 1.0.4
os: Darwin 17.2.0 darwin x64
http_parser: 2.7.0
node: 8.9.4
v8: 6.1.534.50
uv: 1.15.0
zlib: 1.2.11
ares: 1.10.1-DEV
modules: 57
nghttp2: 1.25.0
openssl: 1.0.2n
icu: 59.1
unicode: 9.0
cldr: 31.0.1
tz: 2017b
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: Hexo
subtitle:
description:
author: John Doe
language:
timezone:
# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: http://yoursite.com
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:
# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:
# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
highlight:
enable: true
line_number: true
auto_detect: false
tab_replace:
# Home page setting
# path: Root path for your blogs index page. (default = '')
# per_page: Posts displayed per page. (0 = disable pagination)
# order_by: Posts order. (Order by date descending by default)
index_generator:
path: ''
per_page: 10
order_by: -date
# Category & Tag
default_category: uncategorized
category_map:
tag_map:
# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: YYYY-MM-DD
time_format: HH:mm:ss
# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: next
# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: git
repo: [email protected]:MARGI3/margi3.github.io.git
branch: master
NexT Version:
[] Latest Master branch.
[x] Latest Release version.
[] Old version -
NexT Scheme:
[] All schemes
[] Muse
[] Mist
[] Pisces
[] Gemini
STANDART CONFIG
...
# Theme version
version: 6.0.1
public
files.deploy_git
fileshexo s
hexo d
, or push to the github remotei know the causes which lead to the page render error (files not exist), but i was really confused that why these files can not push to the remote.
local files are generated correctly , but when i push to github fews files seems like are rejected by the github
next更新后Hypercomment的评论框背景色设置成了白色,一时间适应不了。
本人用的scheme是Gemini
遂着手修改其为透明
进入 ../themes/next/source/css/_schemes/Gemini 目录下,编辑 index.styl
定位到 // Comments blocks.
将
.comments { padding: $content-desktop-padding; margin: initial; margin-top: sboffset; background: white; box-shadow: $box-shadow; border-radius: $border-radius; }
修改为
.comments { padding: $content-desktop-padding; margin: initial; margin-top: sboffset; //background: white; background-color: transparent; //box-shadow: $box-shadow; //border-radius: $border-radius; }
custom_text: Hosted by <a href="https://pages.coding.me" style="font-weight: bold">Coding Pages</a>
v8.4.0
5.3.0
{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"hexo": {
"version": "3.4.4"
},
"dependencies": {
"hexo": "^3.2.0",
"hexo-generator-archive": "^0.1.4",
"hexo-generator-category": "^0.1.3",
"hexo-generator-index": "^0.2.0",
"hexo-generator-tag": "^0.2.0",
"hexo-renderer-ejs": "^0.3.0",
"hexo-renderer-stylus": "^0.3.1",
"hexo-renderer-marked": "^0.3.0",
"hexo-server": "^0.2.0"
}
}
hexo: 3.4.4
hexo-cli: 1.0.4
os: Linux 3.13.0-137-generic linux x64
http_parser: 2.7.0
node: 8.4.0
v8: 6.0.286.52
uv: 1.13.1
zlib: 1.2.11
ares: 1.10.1-DEV
modules: 57
nghttp2: 1.22.0
openssl: 1.0.2l
icu: 59.1
unicode: 9.0
cldr: 31.0.1
tz: 2017b
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: katMeow
subtitle:
description: 喵喵~
author: Tak
avatar: /avatar/avatar.png
language: zh-Hans
timezone: Asia/Shanghai
# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: http://yoursite.com
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:
# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:
# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
highlight:
enable: true
line_number: true
auto_detect: false
tab_replace:
# Home page setting
# path: Root path for your blogs index page. (default = '')
# per_page: Posts displayed per page. (0 = disable pagination)
# order_by: Posts order. (Order by date descending by default)
index_generator:
path: ''
per_page: 10
order_by: -date
# Category & Tag
default_category: uncategorized
category_map:
tag_map:
# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: YYYY-MM-DD
time_format: HH:mm:ss
# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: next
# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: git
repo: [email protected]:tak/tak.git
branch: blog-hexo
NexT Version:
- [x] Latest Master branch.
- [ ] Latest Release version.
- [ ] Old version -
NexT Scheme:
- [ ] All schemes
- [ ] Muse
- [x] Mist
- [ ] Pisces
- [ ] Gemini
# ---------------------------------------------------------------
# Theme Core Configuration Settings
# ---------------------------------------------------------------
# If false, merge configs from `_data/next.yml` into default configuration (rewrite).
# If true, will fully override default configuration by options from `_data/next.yml` (override). Only for NexT settings.
# And if true, all config from default NexT `_config.yml` must be copied into `next.yml`. Use if you know what you are doing.
# Useful if you want to comment some options from NexT `_config.yml` by `next.yml` without editing default config.
override: false
# Allow to cache content generation. Introduced in NexT v6.0.0.
cache:
enable: true
# Redefine custom file paths. Introduced in NexT v6.0.2.
# If commented, will be used default custom file paths.
# For example, you want to put your custom styles file
# outside theme directory in root `source/_data`, set
# `styles: source/_data/styles.styl`
#custom_file_path:
# Default paths: layout/_custom/*
#head: source/_data/head.swig
#header: source/_data/header.swig
#sidebar: source/_data/sidebar.swig
# Default path: source/css/_variables/custom.styl
#variables: source/_data/variables.styl
# Default path: source/css/_mixins/custom.styl
#mixins: source/_data/mixins.styl
# Default path: source/css/_custom/custom.styl
#styles: source/_data/styles.styl
# ---------------------------------------------------------------
# Site Information Settings
# ---------------------------------------------------------------
# To get or check favicons visit: https://realfavicongenerator.net
# Put your favicons into `hexo-site/source/` (recommend) 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/` root directory, you must remove `/images` prefix from pathes.
# For example, you put your favicons into `hexo-site/source/images` directory.
# Then need to rename & redefine they on any other names, otherwise icons from Next will rewrite your custom icons in Hexo.
favicon:
small: /favicon/favicon-16x16.png
medium: /favicon/favicon-32x32.png
apple_touch_icon: /favicon/apple-touch-icon.png
#safari_pinned_tab: /images/logo.svg
#android_manifest: /images/manifest.json
#ms_browserconfig: /images/browserconfig.xml
# Set default keywords (Use a comma to separate)
keywords: "Hexo, NexT"
# Set rss to false to disable feed link.
# Leave rss as empty to use site's feed link.
# Set rss to specific value if you have burned your feed already.
rss:
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: heart #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: false
# -------------------------------------------------------------
# Any custom text can be defined here.
custom_text: Hosted by <a href="https://pages.coding.me" style="font-weight: bold">Coding Pages</a>
# ---------------------------------------------------------------
# SEO Settings
# ---------------------------------------------------------------
# Canonical, set a canonical link tag in your hexo, you could use it for your SEO of blog.
# See: https://support.google.com/webmasters/answer/139066
# Tips: Before you open this tag, remember set up your URL in hexo _config.yml ( ex. url: http://yourdomain.com )
canonical: true
# Change headers hierarchy on site-subtitle (will be main site description) and on all post/pages titles for better SEO-optimization.
seo: false
# If true, will add site-subtitle to index page, added in main hexo config.
# subtitle: Subtitle
index_with_subtitle: false
# ---------------------------------------------------------------
# Menu Settings
# ---------------------------------------------------------------
# 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: / || home
#about: /about/ || user
#tags: /tags/ || tags
categories: /categories/ || th
archives: /archives/ || archive
tags: /tags/ || tags
about: /about/ || user
#schedule: /schedule/ || calendar
#sitemap: /sitemap.xml || sitemap
#commonweal: /404/ || heartbeat
# Enable/Disable menu icons / item badges.
menu_settings:
icons: true
badges: false
# ---------------------------------------------------------------
# Scheme Settings
# ---------------------------------------------------------------
# Schemes
#scheme: Muse
scheme: Mist
#scheme: Pisces
#scheme: Gemini
# ---------------------------------------------------------------
# Sidebar Settings
# ---------------------------------------------------------------
# Posts / Categories / Tags in sidebar.
site_state: true
# 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:
#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
# Follow me on GitHub banner in right-top corner.
# Usage: `permalink || title`
# Value before `||` delimeter is the target permalink.
# Value after `||` delimeter is the title and aria-label name.
#github_banner: https://github.com/yourname || Follow me on GitHub
# Blog rolls
links_icon: link
links_title: Links
links_layout: block
#links_layout: inline
#links:
#Title: http://example.com/
# Sidebar Avatar
# in theme directory(source/images): /images/avatar.gif
# in site directory(source/uploads): /uploads/avatar.gif
#avatar: /images/avatar.gif
# Table Of Contents in the Sidebar
toc:
enable: true
# Automatically add list number to toc.
number: true
# If true, all words will placed on next lines if header width longer then sidebar width.
wrap: false
# Creative Commons 4.0 International License.
# http://creativecommons.org/
# Available: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | zero
#creative_commons: by-nc-sa
#creative_commons:
sidebar:
# Sidebar Position, available value: left | right (only for Pisces | Gemini).
position: left
#position: right
# Sidebar Display, available value (only for Muse | Mist):
# - post expand on posts automatically. Default.
# - always expand for all pages automatically
# - hide expand only when click on the sidebar toggle icon.
# - remove Totally remove sidebar including sidebar toggle.
display: post
#display: always
#display: hide
#display: remove
# Sidebar offset from top menubar in pixels (only for Pisces | Gemini).
offset: 12
# Back to top in sidebar (only for Pisces | Gemini).
b2t: false
# Scroll percent label in b2t button.
scrollpercent: false
# Enable sidebar on narrow view (only for Muse | Mist).
onmobile: false
# ---------------------------------------------------------------
# Post Settings
# ---------------------------------------------------------------
# Automatically scroll page to section which is under <!-- more --> mark.
scroll_to_more: true
# Automatically saving scroll position on each post/page in cookies.
save_scroll: false
# Automatically excerpt description in homepage as preamble text.
excerpt_description: true
# Automatically Excerpt. Not recommend.
# Please use <!-- more --> in the post to control excerpt accurately.
auto_excerpt:
enable: false
length: 150
# Post meta display settings
post_meta:
item_text: true
created_at: true
updated_at: false
# Only show 'updated' if different from 'created'.
updated_diff: false
categories: true
# Post wordcount display settings
# Dependencies: https://github.com/theme-next/hexo-symbols-count-time
symbols_count_time:
separated_meta: true
item_text_post: true
item_text_total: false
awl: 5
wpm: 200
# Wechat Subscriber
#wechat_subscriber:
#enabled: true
#qcode: /path/to/your/wechatqcode ex. /uploads/wechat-qcode.jpg
#description: ex. subscribe to my blog by scanning my public wechat account
# Reward
#reward_comment: Donate comment here
#wechatpay: /images/wechatpay.jpg
#alipay: /images/alipay.jpg
#bitcoin: /images/bitcoin.png
# Declare license on posts
post_copyright:
enable: false
license: CC BY-NC-SA 3.0
license_url: https://creativecommons.org/licenses/by-nc-sa/3.0/
# ---------------------------------------------------------------
# Misc Theme Settings
# ---------------------------------------------------------------
# Reduce padding / margin indents on devices with narrow width.
mobile_layout_economy: false
# Android Chrome header panel color ($brand-bg / $headband-bg => $black-deep).
android_chrome_color: "#222"
# Custom Logo.
# !!Only available for Default Scheme currently.
# Options:
# enabled: [true/false] - Replace with specific image
# image: url-of-image - Images's url
custom_logo:
enabled: false
image:
# Code Highlight theme
# Available value:
# normal | night | night eighties | night blue | night bright
# https://github.com/chriskempson/tomorrow-theme
highlight_theme: normal
# Enable "cheers" for archive page.
cheers_enabled: true
# ---------------------------------------------------------------
# Font Settings
# - Find fonts on Google Fonts (https://www.google.com/fonts)
# - All fonts set here will have the following styles:
# light, light italic, normal, normal italic, bold, bold italic
# - Be aware that setting too much fonts will cause site running slowly
# - Introduce in 5.0.1
# ---------------------------------------------------------------
# CAUTION! Safari Version 10.1.2 bug: https://github.com/iissnan/hexo-theme-next/issues/1844
# To avoid space between header and sidebar in Pisces / Gemini themes recommended to use Web Safe fonts for `global` (and `logo`):
# Arial | Tahoma | Helvetica | Times New Roman | Courier New | Verdana | Georgia | Palatino | Garamond | Comic Sans MS | Trebuchet MS
# ---------------------------------------------------------------
font:
enable: false
# Uri of fonts host. E.g. //fonts.googleapis.com (Default).
host:
# Font options:
# `external: true` will load this font family from `host` above.
# `family: Times New Roman`. Without any quotes.
# `size: xx`. Use `px` as unit.
# Global font settings used on <body> element.
global:
external: true
family: Lato
size:
# Font settings for Headlines (h1, h2, h3, h4, h5, h6).
# Fallback to `global` font settings.
headings:
external: true
family:
size:
# Font settings for posts.
# Fallback to `global` font settings.
posts:
external: true
family:
# Font settings for Logo.
# Fallback to `global` font settings.
logo:
external: true
family:
size:
# Font settings for <code> and code blocks.
codes:
external: true
family:
size:
# ---------------------------------------------------------------
# Third Party Services Settings
# ---------------------------------------------------------------
# Math Equations Render Support
math:
enable: false
# Default(true) will load mathjax/katex script on demand
# That is it only render those page who has 'mathjax: true' in Front Matter.
# If you set it to false, it will load mathjax/katex srcipt EVERY PAGE.
per_page: true
engine: mathjax
#engine: katex
# hexo-rendering-pandoc (or hexo-renderer-kramed) needed to full MathJax support.
mathjax:
# For newMathJax CDN (cdnjs.cloudflare.com) with fallback to oldMathJax (cdn.mathjax.org).
cdn: //cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML
# For direct link to MathJax.js with CloudFlare CDN (cdnjs.cloudflare.com).
#cdn: //cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML
# For automatic detect latest version link to MathJax.js and get from CloudFlare.
#cdn: //cdn.bootcss.com/mathjax/2.7.1/latest.js?config=TeX-AMS-MML_HTMLorMML
# hexo-renderer-markdown-it-plus (or hexo-renderer-markdown-it with markdown-it-katex plugin)
# needed to full Katex support.
katex:
# Use Katex 0.7.1 as default
cdn: //cdnjs.cloudflare.com/ajax/libs/KaTeX/0.7.1/katex.min.css
# If you want to try the latest version of Katex, use one below instead
#cdn: //cdn.jsdelivr.net/katex/latest/katex.min.css
# Han Support
# Dependencies: https://github.com/theme-next/theme-next-han
han: false
# Pangu Support
# Dependencies: https://github.com/theme-next/theme-next-pangu
# For more information: https://github.com/vinta/pangu.js
pangu: false
# Swiftype Search API Key
#swiftype_key:
# Baidu Analytics ID
#baidu_analytics:
# Disqus
disqus:
enable: false
shortname:
count: true
lazyload: false
# Hypercomments
#hypercomments_id:
# changyan
changyan:
enable: false
appid:
appkey:
# Valine.
# You can get your appid and appkey from https://leancloud.cn
# more info please open https://valine.js.org
valine:
enable: false
appid: # your leancloud application appid
appkey: # your leancloud application appkey
notify: false # mail notifier , https://github.com/xCss/Valine/wiki
verify: false # Verification code
placeholder: Just go go # comment box placeholder
avatar: mm # gravatar style
guest_info: nick,mail,link # custom comment header
pageSize: 10 # pagination size
# Support for youyan comments system.
# You can get your uid from http://www.uyan.cc
#youyan_uid: your uid
# Support for LiveRe comments system.
# You can get your uid from https://livere.com/insight/myCode (General web site)
#livere_uid: your uid
# Gitment
# Introduction: https://imsun.net/posts/gitment-introduction/
gitment:
enable: false
mint: true # RECOMMEND, A mint on Gitment, to support count, language and proxy_gateway
count: true # Show comments count in post meta area
lazy: false # Comments lazy loading with a button
cleanly: false # Hide 'Powered by ...' on footer, and more
language: # Force language, or auto switch by theme
github_user: # MUST HAVE, Your Github Username
github_repo: # MUST HAVE, The name of the repo you use to store Gitment comments
client_id: # MUST HAVE, Github client id for the Gitment
client_secret: # EITHER this or proxy_gateway, Github access secret token for the Gitment
proxy_gateway: # Address of api proxy, See: https://github.com/aimingoo/intersect
redirect_protocol: # Protocol of redirect_uri with force_redirect_protocol when mint enabled
# Baidu Share
# Available value:
# button | slide
# Warning: Baidu Share does not support https.
#baidushare:
## type: button
# Share
# This plugin is more useful in China, make sure you known how to use it.
# And you can find the use guide at official webiste: http://www.jiathis.com/.
# Warning: JiaThis does not support https.
#jiathis:
##uid: Get this uid from http://www.jiathis.com/
#add_this_id:
# NeedMoreShare2
# Dependencies: https://github.com/theme-next/theme-next-needmoreshare2
# See: https://github.com/revir/need-more-share2
# Also see: https://github.com/DzmVasileusky/needShareButton
# iconStyle: default | box
# boxForm: horizontal | vertical
# position: top / middle / bottom + Left / Center / Right
# networks: Weibo,Wechat,Douban,QQZone,Twitter,Linkedin,Mailto,Reddit,
# Delicious,StumbleUpon,Pinterest,Facebook,GooglePlus,Slashdot,
# Technorati,Posterous,Tumblr,GoogleBookmarks,Newsvine,
# Evernote,Friendfeed,Vkontakte,Odnoklassniki,Mailru
needmoreshare2:
enable: false
postbottom:
enable: false
options:
iconStyle: box
boxForm: horizontal
position: bottomCenter
networks: Weibo,Wechat,Douban,QQZone,Twitter,Facebook
float:
enable: false
options:
iconStyle: box
boxForm: horizontal
position: middleRight
networks: Weibo,Wechat,Douban,QQZone,Twitter,Facebook
# Google Webmaster tools verification setting
# See: https://www.google.com/webmasters/
#google_site_verification:
# Google Analytics
#google_analytics:
# Bing Webmaster tools verification setting
# See: https://www.bing.com/webmaster/
#bing_site_verification:
# Yandex Webmaster tools verification setting
# See: https://webmaster.yandex.ru/
#yandex_site_verification:
# CNZZ count
#cnzz_siteid:
# Application Insights
# See https://azure.microsoft.com/en-us/services/application-insights/
# application_insights:
# Post widgets & FB/VK comments settings.
# ---------------------------------------------------------------
# Facebook SDK Support.
# https://github.com/iissnan/hexo-theme-next/pull/410
facebook_sdk:
enable: false
app_id: #<app_id>
fb_admin: #<user_id>
like_button: #true
webmaster: #true
# Facebook comments plugin
# This plugin depends on Facebook SDK.
# If facebook_sdk.enable is false, Facebook comments plugin is unavailable.
facebook_comments_plugin:
enable: false
num_of_posts: 10 # min posts num is 1
width: 100% # default width is 550px
scheme: light # default scheme is light (light or dark)
# VKontakte API Support.
# To get your AppID visit https://vk.com/editapp?act=create
vkontakte_api:
enable: false
app_id: #<app_id>
like: true
comments: true
num_of_posts: 10
# Star rating support to each article.
# To get your ID visit https://widgetpack.com
rating:
enable: false
id: #<app_id>
color: fc6423
# ---------------------------------------------------------------
# Show number of visitors to each article.
# You can visit https://leancloud.cn get AppID and AppKey.
leancloud_visitors:
enable: false
app_id: #<app_id>
app_key: #<app_key>
# Another tool to show number of visitors to each article.
# visit https://console.firebase.google.com/u/0/ to get apiKey and projectId
# visit https://firebase.google.com/docs/firestore/ to get more information about firestore
firestore:
enable: false
collection: articles #required, a string collection name to access firestore database
apiKey: #required
projectId: #required
bluebird: false #enable this if you want to include bluebird 3.5.1(core version) Promise polyfill
# Show PV/UV of the website/page with busuanzi.
# Get more information on http://ibruce.info/2015/04/04/busuanzi/
busuanzi_count:
# count values only if the other configs are false
enable: false
# custom uv span for the whole site
site_uv: true
site_uv_header: <i class="fa fa-user"></i>
site_uv_footer:
# custom pv span for the whole site
site_pv: true
site_pv_header: <i class="fa fa-eye"></i>
site_pv_footer:
# custom pv span for one page only
page_pv: true
page_pv_header: <i class="fa fa-file-o"></i>
page_pv_footer:
# Tencent analytics ID
# tencent_analytics:
# Tencent MTA ID
# tencent_mta:
# Enable baidu push so that the blog will push the url to baidu automatically which is very helpful for SEO
baidu_push: false
# Google Calendar
# Share your recent schedule to others via calendar page
#
# API Documentation:
# https://developers.google.com/google-apps/calendar/v3/reference/events/list
calendar:
enable: false
calendar_id: <required>
api_key: <required>
orderBy: startTime
offsetMax: 24
offsetMin: 4
timeZone:
showDeleted: false
singleEvents: true
maxResults: 250
# Algolia Search
# Dependencies: https://github.com/theme-next/theme-next-algolia-instant-search
algolia_search:
enable: false
hits:
per_page: 10
labels:
input_placeholder: Search for Posts
hits_empty: "We didn't find any results for the search: ${query}"
hits_stats: "${hits} results found in ${time} ms"
# Local search
# Dependencies: https://github.com/theme-next/hexo-generator-searchdb
local_search:
enable: false
# if auto, trigger search by changing input
# if manual, trigger search by pressing enter key or search button
trigger: auto
# show top n results per article, show all results by setting to -1
top_n_per_article: 1
# Bookmark Support
# Dependencies: https://github.com/theme-next/theme-next-bookmark
bookmark:
enable: false
# if auto
# - save the reading position when closing the page
# - or clicking the bookmark-icon
# if manual, only save it by clicking the bookmark-icon
save: auto
# ---------------------------------------------------------------
# Tags Settings
# ---------------------------------------------------------------
# External URL with BASE64 encrypt & decrypt.
# Usage: {% exturl text url "title" %}
# Alias: {% extlink text url "title" %}
exturl: false
# Note tag (bs-callout).
note:
# Note tag style values:
# - simple bs-callout old alert style. Default.
# - modern bs-callout new (v2-v3) alert style.
# - flat flat callout style with background, like on Mozilla or StackOverflow.
# - disabled disable all CSS styles import of note tag.
style: simple
icons: false
border_radius: 3
# Offset lighter of background in % for modern and flat styles (modern: -12 | 12; flat: -18 | 6).
# Offset also applied to label tag variables. This option can work with disabled note tag.
light_bg_offset: 0
# Label tag.
label: true
# Tabs tag.
tabs:
enable: true
transition:
tabs: false
labels: true
border_radius: 0
# Reading progress bar
# Dependencies: https://github.com/theme-next/theme-next-reading-progress
reading_progress:
enable: false
color: "#37c6c0"
height: 2px
#! ---------------------------------------------------------------
#! DO NOT EDIT THE FOLLOWING SETTINGS
#! UNLESS YOU KNOW WHAT YOU ARE DOING
#! ---------------------------------------------------------------
# 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
# Fancybox. There is support for old version 2 and new version 3.
# Please, choose only any one variant, do not need to install both.
# For install 2.x: https://github.com/theme-next/theme-next-fancybox
# For install 3.x: https://github.com/theme-next/theme-next-fancybox3
fancybox: false
# Added switch option for separated repo in 6.0.0.
# Dependencies: https://github.com/theme-next/theme-next-fastclick
fastclick: false
# Added switch option for separated repo in 6.0.0.
# Dependencies: https://github.com/theme-next/theme-next-jquery-lazyload
lazyload: false
# Progress bar in the top during page loading.
# Dependencies: https://github.com/theme-next/theme-next-pace
pace: false
# Themes list:
#pace-theme-big-counter
#pace-theme-bounce
#pace-theme-barber-shop
#pace-theme-center-atom
#pace-theme-center-circle
#pace-theme-center-radar
#pace-theme-center-simple
#pace-theme-corner-indicator
#pace-theme-fill-left
#pace-theme-flash
#pace-theme-loading-bar
#pace-theme-mac-osx
#pace-theme-minimal
# For example
# pace_theme: pace-theme-center-simple
pace_theme: pace-theme-minimal
# Canvas-nest
# Dependencies: https://github.com/theme-next/theme-next-canvas-nest
canvas_nest: false
# JavaScript 3D library.
# Dependencies: https://github.com/theme-next/theme-next-three
# three_waves
three_waves: false
# canvas_lines
canvas_lines: false
# canvas_sphere
canvas_sphere: false
# Only fit scheme Pisces
# Dependencies: https://github.com/theme-next/theme-next-canvas-ribbon
# Canvas-ribbon
# size: The width of the ribbon.
# alpha: The transparency of the ribbon.
# zIndex: The display level of the ribbon.
canvas_ribbon:
enable: false
size: 300
alpha: 0.6
zIndex: -1
# Script Vendors.
# Set a CDN address for the vendor you want to customize.
# For example
# jquery: https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js
# Be aware that you should use the same version as internal ones to avoid potential problems.
# Please use the https protocol of CDN files when you enable https on your site.
vendors:
# Internal path prefix. Please do not edit it.
_internal: lib
# Internal version: 2.1.3
jquery:
# Internal version: 2.1.5
# See: http://fancyapps.com/fancybox/
fancybox:
fancybox_css:
# Internal version: 1.0.6
# See: https://github.com/ftlabs/fastclick
fastclick:
# Internal version: 1.9.7
# See: https://github.com/tuupola/jquery_lazyload
lazyload:
# Internal version: 1.2.1
# See: http://VelocityJS.org
velocity:
# Internal version: 1.2.1
# See: http://VelocityJS.org
velocity_ui:
# Internal version: 0.7.9
# See: https://faisalman.github.io/ua-parser-js/
ua_parser:
# Internal version: 4.6.2
# See: http://fontawesome.io/
fontawesome:
# Internal version: 1
# https://www.algolia.com
algolia_instant_js:
algolia_instant_css:
# Internal version: 1.0.2
# See: https://github.com/HubSpot/pace
# Or use direct links below:
# pace: //cdn.bootcss.com/pace/1.0.2/pace.min.js
# pace_css: //cdn.bootcss.com/pace/1.0.2/themes/blue/pace-theme-flash.min.css
pace:
pace_css:
# Internal version: 1.0.0
# https://github.com/hustcc/canvas-nest.js
canvas_nest:
# three
three:
# three_waves
# https://github.com/jjandxa/three_waves
three_waves:
# three_waves
# https://github.com/jjandxa/canvas_lines
canvas_lines:
# three_waves
# https://github.com/jjandxa/canvas_sphere
canvas_sphere:
# Internal version: 1.0.0
# https://github.com/zproo/canvas-ribbon
canvas_ribbon:
# Internal version: 3.3.0
# https://github.com/ethantw/Han
han:
# Internal version: 3.3.0
# https://github.com/vinta/pangu.js
pangu:
# needMoreShare2
# https://github.com/revir/need-more-share2
needMoreShare2:
# Assets
css: css
js: js
images: images
# Theme version
version: 6.0.2
i deleted the space between font-weight:
& bold
, then hexo work fine
The theme's scheme is correctly set from the main _config.yml
file, using the theme_config
setting explained here: hexojs/hexo#757
All tested configuration settings can be set from a site's primary _config.yml
file, except for scheme
.
Here is a short script that reproduces the behavior:
#!/bin/sh
# Initialize a hexo project with `hexo-cli`.
hexo init mytest
cd mytest
npm install
# Install the NeXT theme
git clone https://github.com/theme-next/hexo-theme-next themes/next
sed -i 's/theme: landscape/theme: next/g' _config.yml
# Configure the theme from the main config file, using `theme_config`
printf "
theme_config:
scheme: Pisces
menu:
set from main: / || home
" >> _config.yml
# Serve the site on localhost:4000
hexo serve
When viewing the site, the theme's menu
was properly overridden, but the theme's scheme was not.
node -v && npm -v
v8.4.0
5.6.0
{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"hexo": {
"version": "3.4.4"
},
"dependencies": {
"hexo": "^3.2.0",
"hexo-generator-archive": "^0.1.4",
"hexo-generator-category": "^0.1.3",
"hexo-generator-index": "^0.2.0",
"hexo-generator-tag": "^0.2.0",
"hexo-renderer-ejs": "^0.3.0",
"hexo-renderer-stylus": "^0.3.1",
"hexo-renderer-marked": "^0.3.0",
"hexo-server": "^0.2.0"
}
}
exo -v
hexo: 3.4.4
hexo-cli: 1.0.4
os: Linux 4.9.0-3-amd64 linux x64
http_parser: 2.7.0
node: 8.4.0
v8: 6.0.286.52
uv: 1.13.1
zlib: 1.2.11
ares: 1.10.1-DEV
modules: 57
nghttp2: 1.22.0
openssl: 1.0.2l
icu: 59.1
unicode: 9.0
cldr: 31.0.1
tz: 2017b
Default, except for theme_config
at the end.
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: Hexo
subtitle:
description:
author: John Doe
language:
timezone:
# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: http://yoursite.com
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:
# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:
# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
highlight:
enable: true
line_number: true
auto_detect: false
tab_replace:
# Home page setting
# path: Root path for your blogs index page. (default = '')
# per_page: Posts displayed per page. (0 = disable pagination)
# order_by: Posts order. (Order by date descending by default)
index_generator:
path: ''
per_page: 10
order_by: -date
# Category & Tag
default_category: uncategorized
category_map:
tag_map:
# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: YYYY-MM-DD
time_format: HH:mm:ss
# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: next
# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type:
theme_config:
scheme: Pisces
menu:
set from main: / || home
NexT Version:
NexT Scheme:
Default. No modifications: https://github.com/theme-next/hexo-theme-next/blob/7ee28e7d65681f06e509735697573ab857010b11/_config.yml
hover text for PV&UV, instead of header&footer.
Hover text is more concise than footer & header.
pls goto changes a674f35
only header & footer is availabel.
Link to demo site with this issue:
http://blog.eson.org
Link(s) to source code or any usefull link(s): a674f35
Is it possible to have a titlebar in codeblocks like the one in gists(preferably with an option to decide whether to have it at the top or at the bottom).
Example
Current codeblock: https://abload.de/img/codeblocktitlebarxbq0w.png
Gist snippet(cannot be styled by config file): https://abload.de/img/gistsnippetr5png.png
Of course I don't want it to be active at all times, but only if %title% is provided.
Example for octopress: http://octopress.org/docs/blogging/code/
Recent days, I found out the jsDelivr is a really good CDN.
It does not only crawl the js files from npm packages, and it crawls from the GitHub Releases!
Therefore, we could use it to deliver some of our third-party plugins.
Here is the simple step:
Go to the third-party plugin repo, publish a Release.
And it is done!
Then we could use the following link to reference the js files, just as other CDNs.
https://cdn.jsdelivr.net/gh/user/repo@version/file
And it could automatically minify the JS and CSS files, even if you don't have the minified version.
Just use the filename.min.js
or the filename.min.css
to replace the file
above.
Using the jsDelivr comes with 2 advantages:
The user doesn't need to manually clone repos, just change the vendors
config, and it is done.
We could apply a CDN to some of our third-party plugins which are not included in CDNs such as the needmoreshare2
You could take https://github.com/wafer-li/theme-next-needmoreshare2 and https://github.com/wafer-li/wafer-li.github.io/blob/2b47f5c8bfd0ccad163486030951e2ab1a3db2ce/source/_data/next.yml#L1092-L1093
as an example.
configed with Hexo data file format (merged themes/next/_config.yml into hexoblog/_config.yml), but when using hexo g && hexo s, no main.css file was generated in hexoblog/public/css folder,
and hexo s dubug showed error below:
ERROR Asset render failed: css/main.css
Error: D:/AServers/hexobdg/themes/next/source/css/_common/components/highlight/h
ighlight.styl:79:30
75|
76| .gutter pre {
77| padding-left: 10px
78| padding-right: 10px
79| color: $highlight-gutter.color
------------------------------------^
80| text-align: right
81| background-color: $highlight-gutter.bg-color
82| }
...
$highlight-gutter has no property .color
at ".gutter pre " (D:/AServers/hexobdg/themes/next/source/css/_common/compon
ents/highlight/highlight.styl:75:4)
at ".highlight " (D:/AServers/hexobdg/themes/next/source/css/_common/compone
nts/highlight/highlight.styl:39:2)
however using both hexoblog/source/data/NexT.yml to config and the legacy Hexo 2.x way to config, there generated main.css file in hexoblog/public/css folder.
could you please help?
You can see website source!
我看了一下 6.0.1 主题,生成的网页
<link rel="canonical" href="URL"/>
没有和当前页面对照起来。
view-source:https://leaferx.online/2017/01/30/Bottomheart/
查找 canonical
关键字
in NexT.Muse v6.0.0
GET http://saili.science/lib/needsharebutton/needsharebutton.css net::ERR_ABORTED
(index):21 GET http://saili.science/lib/pace/pace.min.js?v=1.0.2 net::ERR_ABORTED
(index):22 GET http://saili.science/lib/pace/pace-theme-minimal.min.css?v=1.0.2 net::ERR_ABORTED
(index):1047 GET http://saili.science/lib/reading_progress/reading_progress.js net::ERR_ABORTED
(index):1604 GET http://saili.science/lib/needsharebutton/needsharebutton.js net::ERR_ABORTED
(index):1047 GET http://saili.science/lib/reading_progress/reading_progress.js 404 (Not Found)
(index):1604 GET http://saili.science/lib/needsharebutton/needsharebutton.js net::ERR_ABORTED
(index):1600 GET http://saili.science/lib/needsharebutton/needsharebutton.css net::ERR_ABORTED
Post wordcount is also not right.
the lib files are missing in the site? need to set Script Vendors?
http://saili.science/2018/01/05/regularization/
# Post wordcount display settings
# Dependencies: https://github.com/theme-next/hexo-symbols-count-time
symbols_count_time:
separated_meta: true
item_text_post: true
item_text_total: true
awl: 5
wpm: 200
needmoreshare2:
enable: true
postbottom:
enable: false
options:
iconStyle: box
boxForm: horizontal
position: bottomCenter
networks: Weibo,Wechat,Douban,QQZone,Twitter,Facebook
float:
enable: false
options:
iconStyle: box
boxForm: horizontal
position: middleRight
networks: Weibo,Wechat,Douban,QQZone,Twitter,Facebook
reading_progress:
enable: true
color: "#37c6c0"
height: 2px
NexT Version:
[x] Latest Master branch.
[] Latest Release version.
[] Old version -
NexT Scheme:
[] All schemes
[x] Muse
[] Mist
[] Pisces
[] Gemini
Hexo is switching to nunjucks from swig as it seems to be unmaintained now. There is some discussion on backward compatibility and one of their concerns is ensuring this theme keeps working as expected.
So perhaps a future release of this theme can make the switch too and make things easier for everyone? hexojs/hexo#2903
hexo generate successfully and completely display equation
when using hexo-renderer-pandoc
(new version 0.2.1) in next (version 5.1.4 and 6.0.0), adding if(config.template) args.push("--template=" + config.template);
in index.js
leads to TypeError: Cannot read property 'template' of undefined
when hexo generate
...
Remove the if(config.template) args.push("--template=" + config.template);
, it works.
On the other hand, according to the guideline in hexo-renderer-pandoc how to set pandoc _config.yml
to avoid the undefined of template
, thank you for your help.
pandoc:
filters:
extra:
template:
meta:
mathEngine:
the guideline in hexo-renderer-pandoc:
template
is a template file you wish to use when pandoc generates your posts:template: dir/.../template.html
will be passed to pandoc as --template=dir/../template.html
The path of the template should be relative to the root of your blog.
For example, the very simple template
$if(toc)$
<div id="$idprefix$TOC">
$toc$
</div>
$endif$
$body$
prepends table of contents to all your posts if variable --toc
is also passed. To enable TOC, add to your _config.yml
:
pandoc:
\# other options
extra:
- toc: \# will be passed as `--toc`. Note the colon
template: dir/../template.html
besides, the menu bar & it's icon/Site'description/pages toc are all gone in next (version 6.0.0) may due to personalized setting...
the lists of personalized setting in next:
- `next/layout/_macro/post.swig`
- `next\layout\_layout.swig`
- `\next\layout\_my`,
- `next/layout/_third-party/search/localsearch.swig`
- `next\layout\_partials\head.swig`
- `next/layout/_partials/share/baidushare.swig`
- `\next\layout\_partials\footer.swig`
- `next/source/css/_variables/base.styl`
- `next/source/css/_custom/custom.styl`
- `next/source/css/_common/components/post/post-expand.styl`
- `next/source/css/_common/components/post/post-reward.styl`
- `next/languages/zh-hans`
- `next/source/js/custom.js`
TypeError: Cannot read property 'template' of undefined
when hexo generate
hexo generate
"hexo": {
"version": "3.4.4"
},
"dependencies": {
"hexo": "^3.2.0",
"hexo-deployer-git": "^0.3.1",
"hexo-generator-archive": "^0.1.4",
"hexo-generator-category": "^0.1.3",
"hexo-generator-feed": "^1.2.2",
"hexo-generator-index": "^0.2.0",
"hexo-generator-searchdb": "^1.0.8",
"hexo-generator-sitemap": "^1.2.0",
"hexo-generator-tag": "^0.2.0",
"hexo-generator-topindex": "^0.3.0",
"hexo-renderer-ejs": "^0.3.0",
"hexo-renderer-pandoc": "^0.2.1",
"hexo-renderer-stylus": "^0.3.1",
"hexo-server": "^0.2.0",
"hexo-wordcount": "^3.0.2"
NexT Version:
[x] Latest Master branch.
[x] Latest Release version.
[] Old version -
NexT Scheme:
[] All schemes
[] Muse
[] Mist
[x] Pisces
[] Gemini
First issue... I'm sorry I don't have much knowledge
I've made a lot of personal changes in my previous files which should be 5.1.3 version, how can I simply update the theme, so I can keep the previous change.
Thx!
Still display content successfully without javascript.
If I ban the javascript with motion enable, it will result in a blank page.
node
v9.4.0
npm
5.6.0
{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"hexo": {
"version": "3.4.4"
},
"dependencies": {
"hexo": "^3.4.4",
"hexo-all-minifier": "^0.4.1",
"hexo-deployer-git": "^0.3.1",
"hexo-filter-plantuml": "^1.0.1",
"hexo-generator-archive": "^0.1.5",
"hexo-generator-atom-markdown-writer-meta": "^0.1.1",
"hexo-generator-category": "^0.1.3",
"hexo-generator-feed": "^1.2.0",
"hexo-generator-index": "^0.2.0",
"hexo-generator-searchdb": "^1.0.8",
"hexo-generator-seo-friendly-sitemap": "0.0.21",
"hexo-generator-tag": "^0.2.0",
"hexo-inject": "^1.0.0",
"hexo-reference": "^1.0.3",
"hexo-renderer-ejs": "^0.3.1",
"hexo-renderer-kramed": "^0.1.2",
"hexo-renderer-stylus": "^0.3.1",
"hexo-server": "^0.3.1",
"hexo-symbols-count-time": "^0.2.0",
"hexo-wordcount": "^3.0.2"
}
}
hexo: 3.4.4
hexo-cli: 1.0.4
os: Darwin 17.3.0 darwin x64
http_parser: 2.7.0
node: 9.4.0
v8: 6.2.414.46-node.17
uv: 1.18.0
zlib: 1.2.11
ares: 1.13.0
modules: 59
nghttp2: 1.29.0
openssl: 1.0.2n
icu: 60.2
unicode: 10.0
cldr: 32.0.1
tz: 2017c
NexT Version:
[x] Latest Master branch.
[] Latest Release version.
[] Old version -
NexT Scheme:
[] All schemes
[] Muse
[] Mist
[x] Pisces
[] Gemini
# 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
I know it might sound stupid, obviously you could not use the motion effect without javascript.
But even if the visitor cannot see the the motion effect, it is necessary to display the blog content instead of just making it disappear.
I wonder if next theme support configuration visual width of article. If not, I suppose add this future to next.
For example, on the big screen, the article area looks too wide, and I want to make it narrower
NexT Version:
[] Latest Master branch.
[] Latest Release version.
[] Old version -
NexT Scheme:
[] All schemes
[] Muse
[] Mist
[] Pisces
[] Gemini
NexT Version:
[ ] Latest Master branch.
[ ] Latest Release version.
[ ] Old version -
NexT Scheme:
[ ] All schemes
[ ] Muse
[ ] Mist
[ ] Pisces
[ ] Gemini
I'm not sure if it was kind of a bug or just the designed style.
A single page like '.com/categories/tech/' or '.com/tags/tech/' will show a timeline of related post but with no year devided? The style of the timeline almost looks the same with archives page but only the month and day has been shown?
😢why no year there ?
wrap: false
mode (#1980, #176)text-align
on mobile (not only on mobile?) for all schemes (#73, added in #682)post.*
options to centrilized H1-H3 titles.symbols-count-time
- if less than 60 mins, show only mins ((theme-next/hexo-symbols-count-time#11), added in #233)select all
button for code blocks. (added in #234)spoiler
tag (#200)em
instead of px
as default font-size unit (#249, #726)exturl
into internal filter. (added in #463)Words count in article
to Symbols count in article
(fixed in 9d46733)busuanzi_count
languages values from config to laguages files (#110)auto_excerpt: enable: true
with mobile_layout_economy
option (#181, fixed in #534)hexo-generator-searchdb
(#190, theme-next/hexo-generator-searchdb#5)swig
by swig-templates
in this pull and released in Hexo v3.5.0_custom.yml
) (added in #253).theme/next/scripts/tags/group-pictures.js
to theme-next.org, #1073)exturl
tag? (theme/next/scripts/tags/exturl.js
, warnings added in #766).deploy_git
& .nojekyll
(#1214)Please feel free to leave your thought in comments (or edit this post directly if u have permissions).
NexT Version:
[X] Latest Master branch.
[X] Latest Release version.
[] Old version -
NexT Scheme:
[] All schemes
[] Muse
[X] Mist
[] Pisces
[] Gemini
I've found a very serious bug in the integrated leancloud visitor counter.
Using this bug, anyone can change the visitor data of the blogs that don't belong to him, and even have the ability to ruin other's whole database.
I'm really not sure if i should write the reproduce steps here.
Need discussions. @ivan-nginx
NexT Version: 6.0.0 and those integrated with leancloud visitor counter
NexT Scheme:
All schemes
Social icons work.
Social icons did not show up.
hexo clean
hexo g
hexo s
node -v
v8.9.4
npm -v
5.6.0
hexo: 3.4.4
hexo-cli: 1.0.4
os: Darwin 14.5.0 darwin x64
http_parser: 2.7.0
node: 8.9.4
v8: 6.1.534.50
uv: 1.15.0
zlib: 1.2.11
ares: 1.10.1-DEV
modules: 57
nghttp2: 1.25.0
openssl: 1.0.2n
icu: 59.1
unicode: 9.0
cldr: 31.0.1
tz: 2017b
{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"hexo": {
"version": "3.4.4"
},
"dependencies": {
"hexo": "^3.2.0",
"hexo-deployer-git": "^0.3.1",
"hexo-generator-archive": "^0.1.4",
"hexo-generator-category": "^0.1.3",
"hexo-generator-index": "^0.2.0",
"hexo-generator-tag": "^0.2.0",
"hexo-renderer-ejs": "^0.3.0",
"hexo-renderer-marked": "^0.3.0",
"hexo-renderer-stylus": "^0.3.1",
"hexo-server": "^0.2.0"
}
}
NexT Version:
Next v 6.0.0
[] Latest Master branch.
[] Latest Release version.
[] Old version -
NexT Scheme:
[] All schemes
[x] Muse
[] Mist
[] Pisces
[] Gemini
Chrome
IOS X 10.10.5
FontAwesome 5 has been released with many new icons even in the free version(e.g: discord icon was added which is quite good for the social bar). However I would also like to suggest the option to use custom .svg files specifying a path.
Is there any way to move all custom files out of theme dir just like the _config.yml
which described at iissnan/hexo-theme-next#328
Currently, the custom files are all over the place, it is too painful to update the theme from the official repo.
Hi everyone and with Happy New Year again!
A little words about beginning of new NexT life: it's fantastic! I'm very happy what in several days we was gave to NexT full reborn with better speed and lighter weight! It's the first step to happyness.
Secondly, i invited all contributors from original repo which make at least semi-weight features/fixes/enhancements and to best active i gave full-access rights (hi, @geekrainy! u want it? u get it! 😸 ), so, last bug with no admin access in Vi repo will not repeat again, even if i'll be dead tomorrow. It's mean NexT will life eternal, yep.
Many questions was about changing license from MIT to AGPL. And from my side many arguments was given too. But be patient, i'll detailed explain all pros and cons later, in «theme-next.org» site, which was registered by me a few hours before NY. I think u all will like what i explain and suggest later, but need some time. Try to understand, please.
About Iissnan.. I talk about it here and only may added as follows: if Vi coming back, i'll be very happy and with no questions give to him full admin rights to NexT Organization. I also want to talk about some future NexT features to him (because he's creator, yep) but, as we all know — he didn't come on any contact.
What's next... Next is — the NexT! I'll try to do my best for this theme, as i said many times before and i'll really appreciate any contributing to the NexT. Also, Collobrators are needed. If i'll see any good activity, anyone can easly get Collobration access. Yep. That's my politics. Easy, isn't it?
And if anyone have any questions (like how to learn write code on Javascript), he's can easly write to me on any of my contacts — I can teach you how to do it very, very easy! Don't afraid! Need to do! We have 1 life and it makes no sense not to do!
P.S. Sorry, just a little drunked. Russia, fckside. 😄
应该出来 可以share 的社区icon
should have icon of community that I want to share
只有一个 share button,点击以后啥也没有
there is only share button, nothing happens when I click this button
my social share config:
needmoreshare2:
enable: true
postbottom:
enable: true
options:
iconStyle: box
boxForm: horizontal
position: bottomCenter
networks: Weibo,Wechat,Douban,QQZone,Twitter,Facebook
float:
enable: true
options:
iconStyle: box
boxForm: horizontal
position: Right
networks: Weibo,Wechat,Douban,QQZone,Twitter,Facebook
NexT Version:
[] Latest Master branch.
[X] Latest Release version.
[] Old version -
NexT Scheme:
[] All schemes
[X] Muse
[] Mist
[] Pisces
[] Gemini
使用 6.0
I use v6.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.