Coder Social home page Coder Social logo

hexo-theme-next's Introduction

Language: 🇺🇸 🇨🇳 🇷🇺

e x T

«NexT» is a high quality elegant Hexo theme. It is crafted from scratch with love.



Live Preview

💟 Muse | 🔯 Mist | ♓️ Pisces | ♊️ Gemini

More «NexT» examples here.

Installation

The simplest way to install is to clone the entire repository:

$ cd hexo
$ git clone https://github.com/theme-next/hexo-theme-next themes/next

Or you can see detailed installation instructions if you want any other variant.

Plugins

NexT supports a large number of third-party plugins, which can be easily configured.

For example, if you want to enable pjax on your site, just set pjax to true in NexT config file:

# Easily enable fast Ajax navigation on your website.
# Dependencies: https://github.com/theme-next/theme-next-pjax
pjax: true

Then visit the «Dependencies» link to get the installation instructions of this module.

Configure CDN

If you want to specify a CDN link for any plugins, you need to set / update the CDN link.

For example, if you want to use mediumzoom and load the plugin via CDN, go to NexT config and see:

vendors:
  # ...
  # Some contents...
  # ...
  mediumzoom: # Set or update mediumzoom CDN URL.

Update

NexT releases new versions every month. You can update to latest master branch by the following command:

$ cd themes/next
$ git pull

And if you see any error message during update (something like «Commit your changes or stash them before you can merge»), recommended to learn Hexo data files feature.
However, you can bypass update errors by using the Commit, Stash or Reset commands for local changes. See here how to do it.

If you want to update from v5.1.x to the latest version, read this.

Feedback

Contributing

We welcome you to join the development of NexT. Please see contributing document. 🤗

Also, we welcome Issue or PR to our official-plugins.

Contributors

Thanks

«NexT» send special thanks to these great services that sponsor our core infrastructure:

   

GitHub allows us to host the Git repository, Netlify allows us to distribute the documentation.



Crowdin allows us to translate conveniently the documentation.

   

Codacy allows us to monitor code quality, Travis CI allows us to run the test suite.

hexo-theme-next's People

Contributors

1v9 avatar allcontributors[bot] avatar asdf2014 avatar backrunner avatar blealtan-bot avatar daya0576 avatar geekrainy avatar hsiangfeng avatar ivan-nginx avatar jackey8616 avatar jiangtj avatar kaitohh avatar kuleyu avatar leaferx avatar leirock avatar liam0205 avatar liolok avatar maple3142 avatar maples7 avatar meteorlxy avatar mutoe avatar raincal avatar safeeval avatar sli1989 avatar stevenjoezhang avatar tsanie avatar wafer-li avatar xu-song avatar zhuzhuyule avatar zq1997 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hexo-theme-next's Issues

A single category or tag page doesn't show year devision?

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 ?

NexT v7.x Roadmap

Requested features:

  • Fluidbox or mediumZoom? (#394, #627)
  • Filters on archives/cats/tags (#424)
  • PJAX support (#918)
  • Related popular posts (#1130, added in #109)
  • Night Mode on NexT (#1871)
  • Lazy loading for all possible contents (infinite loading)? (#1914)
  • Secondary menu? (#1924, added in #156)
  • Overlength toc cannot show full content in wrap: false mode (#1980, #176)
  • Variable templates on schemes with misc colors (not only black-white)
  • Increase site loading speed in Google Speed Insights. (https://github.com/theme-next/hexo-filter-optimize)
  • Option text-align on mobile (not only on mobile?) for all schemes (#73, added in #682)
  • Refactor headers in all schemes & add post.* options to centrilized H1-H3 titles.
  • Display all level of TOC instead of being activated. (#307, added in #679)
  • Changing color templates with JS directly and save to cache.
  • Improve time visible for symbols-count-time - if less than 60 mins, show only mins ((theme-next/hexo-symbols-count-time#11), added in #233)
  • Sidebar width in settings (addition to #103, added in #111, refactored in #339)
  • Sidebar on mobile for all schemes (not only for Muse | Mist)
  • Sidebar to the left in Mist (#164). Need to add to Muse scheme too. (#803)
  • Enable/Disable global animation (to make velocity external, #113)
  • Clipboard or select all button for code blocks. (added in #234)
  • Custom JS files. (Using theme-inject, #868)
  • Custom page layout (gallery and product page) (#144)
  • Album or PhotoWall page (#295)
  • 4k resolution adaptation (#150, added in #339)
  • spoiler tag (#200)
  • Make font customization more flexible, use em instead of px as default font-size unit (#249, #726)
  • Modify exturl into internal filter. (added in #463)
  • Option for 100% or not for iframe (#316)
  • Custom 404 page (#389, Docs added)
  • Add post sticky feature? (#447) Adding https://github.com/stevenjoezhang/hexo-generator-indexed to the docs is enough
  • Option to Hide/Show back2top button. (#482, added in #657)
  • Function for detect browsers, similar as already exists function to detect UA.

Third-party:

Known bugs:

  • Rename Words count in article to Symbols count in article (fixed in 9d46733)
  • Categories bug? (#300, was solved)
  • Sidebar bug? (#442)
  • Mist scheme bug? (#459, fixed in iissnan/hexo-theme-next@1985b7e#diff-ddaaf61bc40a2d092db6ddb0715dbde0)
  • Make table scrollable (#1582, fixed in #598)
  • W3 validator Baidu errors (#1646)
  • Algolia still in bug? (#1764, fixed in #89)
  • Option to disable wechat/alipay/bitcoin reward animation (#1856)
  • Tagcloud generation limit (#1908)
  • Leancloud visitor counter security bug (added in #25)
  • Refactor font styles to global variables for all schemes (#38)
  • Refactor footer alignment for all schemes (#48)
  • Fix & improve styles in codeblocks titles (#100, fix and feature added in #194)
  • Move busuanzi_count languages values from config to laguages files (#110)
  • Paddings in auto_excerpt: enable: true with mobile_layout_economy option (#181, fixed in #534)
  • Update hexo-generator-searchdb (#190, theme-next/hexo-generator-searchdb#5)

Miscellaneous:

  • Replace SWIG? (#33, #1892)
    Already replaced swig by swig-templates in this pull and released in Hexo v3.5.0
  • Script for auto-increase version before initial release into tag.
  • AppVeyor & Build automatization scripts.
  • Separate schemes on modules/submodules.
  • Separate styles between schemes (exclude all possible styles rewrites)
  • Move all possible docs with features from config to site with docs.
  • Custom language file support (_custom.yml) (added in #253).
  • Document for group-images usage (move from theme/next/scripts/tags/group-pictures.js to theme-next.org, #1073)
  • Remove exturl tag? (theme/next/scripts/tags/exturl.js, warnings added in #766)
  • .deploy_git & .nojekyll (#1214)
  • Language switcher by flags? (#1680)
  • Refactor all separated transactions on one global transaction.
  • Refactor source/css/_common/components/post/post-type.styl
  • Refactor main font name and compare compatability for different languages & browsers.
  • ForkAwesome / FontAwesome? (#94, #474 and #505)
  • Console reminder if new version released [autoupdate option] (#318)
  • NexT 3rd-party modules as submodules? (#413, #564 and #663)
  • Refactoring Mathjax? (#257, #645, #658) Transform latex expression to svg in build time?
  • Archives & Categories & Tags counting for plural counting in languages.

Please feel free to leave your thought in comments (or edit this post directly if u have permissions).

Remote js css files disappeared after `hexo d` or git push [strange .gitignore bug with macOS: deploy can't work correctly]

I agree and want to create new issue


Expected behavior

page reder correctly

Actual behavior

css file , js file not found (404)

Steps to reproduce the behavior

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

Node.js and NPM Information

v8.9.4

5.6.0

Package dependencies Information

{
  "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 Information

Hexo version

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

# 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 Information

NexT Version:

[] Latest Master branch.
[x] Latest Release version.
[] Old version -

NexT Scheme:

[] All schemes
[] Muse
[] Mist
[] Pisces
[] Gemini

NexT Configuration:

STANDART CONFIG
...
# Theme version
version: 6.0.1

Other Information

  • local public files

wx20180115-215826 2x

  • local .deploy_git files

wx20180115-215735 2x

  • preview with hexo s

wx20180115-220011 2x

  • when i hexo d , or push to the github remote

wx20180115-220837 2x

wx20180115-215909 2x

Summary

i 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

wordcount / needsharebutton /reading_progress in lib is unreachable [solved]

I agree and want to create new issue


Expected behavior

Actual behavior

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?

  • Link to demo site with this issue: N/A

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 Information

NexT Version:

[x] Latest Master branch.
[] Latest Release version.
[] Old version -

NexT Scheme:

[] All schemes
[x] Muse
[] Mist
[] Pisces
[] Gemini

Sidebar is not in fixed position in new created pages in theme Gemini [solved]

I agree and want to create new issue


Expected behavior

When scrolling down pages sidebar should be fixed to top like below
image

Actual behavior

In the new page(not the post) I created, sidebar has a relative position
image

Steps to reproduce the behavior

  1. N/A
  2. N/A
  3. N/A

NexT Version:

[x] Latest Master branch.
[] Latest Release version.
[] Old version -

NexT Scheme:

[] All schemes
[] Muse
[] Mist
[] Pisces
[x] Gemini

How to just update? [update from 5.1.x to 6.0.x]

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!

Render failed in mobile using script

I agree and want to create new issue


Expected behavior

Render success in web & mobile circumstance.

Actual behavior

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.

2018-01-23_122019

NexT Information

NexT Version:

[] Latest Master branch.
[x] Latest Release version.
[] Old version -

NexT Scheme:

[] All schemes
[x] Muse
[] Mist
[] Pisces
[] Gemini

Space in <a style=""> of custom_text cause hexo problem [solved]

I agree and want to create new issue


Expected behavior

image

Actual behavior

image

Steps to reproduce the behavior

  1. edit _config.yml in themes/next
  2. uncomment custom_text and change the content as follow:
custom_text: Hosted by <a href="https://pages.coding.me" style="font-weight: bold">Coding Pages</a>
  1. hexo s
  • Link to demo site with this issue: N/A
  • Link(s) to source code or any usefull link(s): N/A

Node.js and NPM Information

v8.4.0
5.3.0

Package dependencies Information

{
  "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 Information

Hexo version

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

# 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 Information

NexT Version:

- [x] Latest Master branch.
- [ ] Latest Release version.
- [ ] Old version -

NexT Scheme:

- [ ] All schemes
- [ ] Muse
- [x] Mist
- [ ] Pisces
- [ ] Gemini

NexT Configuration:

# ---------------------------------------------------------------
# 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

Other Information

i deleted the space between font-weight: & bold, then hexo work fine

NexT v6.0+ Hypercomment transparent block [solved]

next更新后Hypercomment的评论框背景色设置成了白色,一时间适应不了。
本人用的scheme是Gemini
_20180121051420

遂着手修改其为透明
进入 ../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; }

needmoreshare2 misfunction [solved]

I agree and want to create new issue


Expected behavior

应该出来 可以share 的社区icon
should have icon of community that I want to share

Actual behavior

只有一个 share button,点击以后啥也没有
there is only share button, nothing happens when I click this button

Steps to reproduce the behavior

  1. theme/next/_config.yml
  2. change needmoreshare2 configs
  3. hexo clean, hexo g, hexo s

Hexo Information

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 Information

NexT Version:

[] Latest Master branch.
[X] Latest Release version.
[] Old version - 

NexT Scheme:

[] All schemes
[X] Muse
[] Mist
[] Pisces
[] Gemini

Other Information

使用 6.0
I use v6.0

Override theme's `scheme` from main config [solved]

I agree and want to create new issue


Expected behavior

The theme's scheme is correctly set from the main _config.yml file, using the theme_config setting explained here: hexojs/hexo#757

Actual behavior

All tested configuration settings can be set from a site's primary _config.yml file, except for scheme.

Steps to reproduce the behavior

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.

  • Link(s) to source code or any useful link(s):

Node.js and NPM Information

node -v && npm -v
v8.4.0
5.6.0

Package dependencies Information

{
  "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 Information

Hexo version

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

Hexo Configuration

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 Information

NexT Version:

  • Latest Master branch.
  • Latest Release version.
  • Old version

NexT Scheme:

  • All schemes
  • Muse
  • Mist
  • Pisces
  • Gemini

NexT Configuration:

Default. No modifications: https://github.com/theme-next/hexo-theme-next/blob/7ee28e7d65681f06e509735697573ab857010b11/_config.yml

Other Information

hexothemeschemeconfig

Titlebar in codeblocks [solved]

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/

What's the meaning of site total number of readings is 14:06 [solved]

I agree and want to create new issue


Expected behavior

Actual behavior

Steps to reproduce the behavior

  1. Here is a online example http://codepub.cn/ at the bottom of the page, there is a coffee cup and 14:06, I don't know what's the meaning of 14:06, It's more like a timestamp.
  • Link to demo site with this issue: N/A
  • Link(s) to source code or any usefull link(s): N/A

Node.js and NPM Information


Package dependencies Information


Hexo Information

Hexo version


Hexo Configuration

NexT Information

NexT Version:

[X] Latest Master branch.
[X] Latest Release version.
[] Old version -

NexT Scheme:

[] All schemes
[] Muse
[X] Mist
[] Pisces
[] Gemini

NexT Configuration:

Other Information

How to remove black line above header? [solved]

电脑还好,但对于Android Chrome,如图,在浏览器地址栏和页面中间的黑线特别违和,请问如何取消之?或者改变颜色让它和标题栏融为一体也好。

Clean duoshuo plugin [solved]

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.

About beginning

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. 😄

Suggestion to modify the mathjax code [solved]

I agree and want to create new issue


Expected behavior

display inline formula using hexo-renderer-pandoc with the mathjax support in the theme's _config.yml.

Actual behavior

  1. using hexo-renderer-marked , and mathjax: enable: true in the theme's _config.yml:
    fail to display all formula;
  2. 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):
    fail to display all formula;
  3. 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:
    display inline formula successfully.

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.
});
  • Link(s) to source code
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 Information

NexT Version:

[x] Latest Master branch.
[x] Latest Release version.
[] Old version -

NexT Scheme:

[] All schemes
[] Muse
[] Mist
[x] Pisces
[] Gemini

Algolia Search needs application Key [solved]

To be simple:

Let's see here:

var isAlgoliaSettingsValid = algoliaSettings.applicationID &&
algoliaSettings.apiKey &&
algoliaSettings.indexName;

It needs an application key and etc.

So, where does it come from? Here:

algolia: {
applicationID: '{{ theme.algolia.applicationID }}',
apiKey: '{{ theme.algolia.apiKey }}',
indexName: '{{ theme.algolia.indexName }}',
hits: {{ theme.algolia_search.hits | json_encode }},
labels: {{ theme.algolia_search.labels | json_encode }}
}

It should be an application key field in the config.

hexo-theme-next/_config.yml

Lines 641 to 648 in 7e71b4b

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"

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:

image

Disqus is not working [solved]

I agree and want to create new issue


Expected behavior

Disqus works after loading.

Actual behavior

Disqus does not show up at the end of blogs.

Steps to reproduce the behavior

  1. next-thema -config.yml
    disqus:
    enable: true
    shortname: qifengzhou
    count: true
  2. hexo clean
    hexo g # generate with the new settings
    hexo s # start it local
  3. hexo d # deploy also not working
  • Link to demo site with this issue: N/A
  • Link(s) to source code or any usefull link(s): N/A

Node.js and NPM Information

node -v
v8.9.4

npm -v
5.6.0

Hexo Information

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

Package dependencies Information

{
  "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 Information

NexT Version:

[] Latest Master branch.
[] Latest Release version.
[] Old version -

NexT Scheme:

[] All schemes
[x] Muse
[] Mist
[] Pisces
[] Gemini

Other Information

chrome

GitLocalize members inviting

I today created account in GitLocalize and add there NexT repository.

For now supported filters are:

  1. All languages in languages directory.
  2. All languages in 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.

TOC link error [solved]

I agree and want to create new issue


Expected behavior

Actual behavior

Steps to reproduce the behavior

  1. N/A
  2. N/A
  3. N/A
  • Link to demo site with this issue: N/A
  • Link(s) to source code or any usefull link(s): N/A

Node.js and NPM Information


Hexo Information


Package dependencies Information


NexT Information

NexT Version:

[ ] Latest Master branch.
[ ] Latest Release version.
[ ] Old version -

NexT Scheme:

[ ] All schemes
[ ] Muse
[ ] Mist
[ ] Pisces
[ ] Gemini

Other Information

Gitment fails in edge&ie&mobile

I agree and want to create new issue


Expected behavior

display the comments and login box

Actual behavior

  • chrome displayed the comments and login box
  • edge failed to display login box. Microsoft Edge 40.15063.0.0 Microsoft EdgeHTML 15.15063
  • ie&mobile failed to display the comments and login box

the known issue in gitment is #50

  • Link to demo site with this issue:

http://saili.science/2016/04/04/how-to-research/

NexT Information

NexT Version:

[] Latest Master branch.
[x] Latest Release version.
[] Old version -

NexT Scheme:

[] All schemes
[] Muse
[] Mist
[x] Pisces
[] Gemini

Other Information

Why not add hover text for pv/uv? [solved]

I agree and want to create new issue


Expected behavior

hover text for PV&UV, instead of header&footer.

Hover text is more concise than footer & header.

pls goto changes a674f35

Actual behavior

only header & footer is availabel.

Steps to reproduce the behavior

  1. N/A
  2. N/A
  3. N/A

<link rel="canonical" href="URL"/> is wrong! [solved]

You can see website source!

我看了一下 6.0.1 主题,生成的网页

<link rel="canonical" href="URL"/> 没有和当前页面对照起来。

view-source:https://leaferx.online/2017/01/30/Bottomheart/

查找 canonical 关键字

Footer is overrided by the valine comment in mobile [solved]

I agree and want to create new issue


Actual behavior

qq 20180118222621

Is it possible to be add gap between comment and the footer?

NexT Information

NexT Version:

[x] Latest Master branch.
[] Latest Release version.
[] Old version -

NexT Scheme:

[] All schemes
[x] Muse
[] Mist
[] Pisces
[] Gemini

<img src="/image-url" class="full-image" /> BUG [solved]

I agree and want to create new issue


Expected behavior

image

Actual behavior

image

Node.js and NPM Information

$ node -v
v4.8.7

$ npm -v
2.15.11

Hexo Information

Hexo version

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 Information

NexT Version:

[x] Latest Master branch.
[] Latest Release version.
[] Old version -

NexT Scheme:

[] All schemes
[] Muse
[] Mist
[] Pisces
[x] Gemini

Configured with Hexo data file format (merged themes/next/_config.yml into hexo/_config.yml), but when using hexo g && hexo s, no main.css file was generated

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?

How to disable sidebar for a folder or single page? [solved]

I agree and want to create new issue


Expected behavior

disable sidebar in some folder or single page

Actual behavior

sidebar is enable in all pages

Steps to reproduce the behavior

  1. setup hexo and next
  2. enable sidebar

Node.js and NPM Information


v8.9.4
5.6.0


Hexo Information

Hexo version

hexo: 3.4.4
hexo-cli: 1.0.4

NexT Information

NexT Version:

[x] Latest Master branch.
[] Latest Release version.
[] Old version -

NexT Scheme:

[] All schemes
[x] Muse
[] Mist
[] Pisces
[] Gemini

NexT Configuration:

# 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

Other Information

aa

How prevent text expand [solved]

image
In the picture, a line of Chinese characters are arranged with more space between each other because it is followed with a URL, my question is how to prevent this it.

The lib resources of the website are all lost. I was upgraded from 5.1. I did not say how to set this resource on the document. [solved]

I agree and want to create new issue


Expected behavior

Normal display of website

Actual behavior

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

Steps to reproduce the behavior

  1. N/A
  2. N/A
  3. N/A
  • Link to demo site with this issue: N/A
  • Link(s) to source code or any usefull link(s): N/A

Node.js and NPM Information


Package dependencies Information


Hexo Information

Hexo version


Hexo Configuration

NexT Information

NexT Version:

[] Latest Master branch.
[x] Latest Release version.
[] Old version -

NexT Scheme:

[x] All schemes
[] Muse
[] Mist
[] Pisces
[] Gemini

NexT Configuration:

Other Information

How to set next's _config.yml when using hexo-renderer-pandoc [solved]

I agree and want to create new issue


Expected behavior

hexo generate successfully and completely display equation

Actual behavior

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`

Steps to reproduce the behavior

  1. npm uninstall hexo-renderer-marked --save
  2. npm install hexo-renderer-pandoc --save
  3. TypeError: Cannot read property 'template' of undefined when hexo generate
  4. npm uninstall hexo-renderer-pandoc --save
  5. npm install hexo-renderer-marked --save
  6. successfully when hexo generate
  • Link to demo site with this issue: N/A
  • Link(s) to source code or any usefull link(s): N/A

Node.js and NPM Information

"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"

Hexo Information


Package dependencies Information


NexT Information

NexT Version:

[x] Latest Master branch.
[x] Latest Release version.
[] Old version -

NexT Scheme:

[] All schemes
[] Muse
[] Mist
[x] Pisces
[] Gemini

Other Information

Several improvements in main menu on all schemes.

Commit: 2412fbc

Part 1. Main menu improvements

  1. Add option for count of Posts / Categories / Tags with badges in menu. All 3 schemes.
  2. Add menu-item-active styles to menu in Muse and Mist schemes. In Pisces and Gemini active menu was worked fine + was small dot.

Muse

image
image

Mist

image
image

Pisces

image
image

Gemini

image

image

How to use?

In Next _config.yml:

menu_settings:
  badges: true

Part 2. Add option for disable Posts / Categories / Tags in sidebar.

How it looks?

image

How to use?

In Next _config.yml:

# Posts / Categories / Tags in sidebar.
site_state: false

Part 3. Breaking change on menu_icons.enable - replaced with menu_settings.icons.

Where?

In Next _config.yml:

-# Enable/Disable menu icons. 
-menu_icons: 
-  enable: true

+# Enable/Disable menu icons / item badges. 
+menu_settings: 
+  icons: true 

A serious security bug in leancloud visitor counter [solved]

I agree and want to create new issue


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.

Steps to reproduce the behavior

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

What about use jsDelivr to deliver our third-party plugins? [solved]

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:

  1. The user doesn't need to manually clone repos, just change the vendors config, and it is done.

  2. 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.

Drop swig dependency [solved]

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

Use FontAwesome 5 or custom .svg files

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.

Math script loaded in tags and archives pages [solved]

I agree and want to create new issue


Expected behavior

Math script won't be loaded with no math in tags, achives pages etc.

Actual behavior

Math sript loaded in tags, achives pages etc. even if there is no math in homepage.

Steps to reproduce the behavior

  1. Turn on enable of math
  2. 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.

Node.js and NPM Information


Package dependencies Information


Hexo Information

Hexo version


Hexo Configuration

NexT Information

NexT Version:

[x] Latest Master branch.
[] Latest Release version.
[] Old version -

NexT Scheme:

[x] All schemes
[] Muse
[] Mist
[] Pisces
[] Gemini

NexT Configuration:

# 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

Other Information

And there is the screenshot:

image

I have no math in my homepage, but it still load the Katex CSS.

And in achives too:

image

Turn OFF javascript with motion enable result in a blank page [solved]

I agree and want to create new issue


Expected behavior

Still display content successfully without javascript.

Actual behavior

If I ban the javascript with motion enable, it will result in a blank page.

Steps to reproduce the behavior

  1. Ban javascript from chrome
  2. Refresh you page
  • Link to demo site with this issue: N/A
  • Link(s) to source code or any usefull link(s): N/A

Node.js and NPM Information

node
v9.4.0

npm
5.6.0

Package dependencies Information

{
  "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 Information

Hexo version

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

Hexo Configuration

NexT Information

NexT Version:

[x] Latest Master branch.
[] Latest Release version.
[] Old version -

NexT Scheme:

[] All schemes
[] Muse
[] Mist
[x] Pisces
[] Gemini

NexT Configuration:

# 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

Other Information

Screenshots:
image

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.

Social icons do not show up [solved]

I agree and want to create new issue


Expected behavior

Social icons work.

Actual behavior

Social icons did not show up.

Steps to reproduce the behavior

  1. theme_next _config.yml
    social:
    GitHub: https://github.com/qifengzhou || github

hexo clean
hexo g
hexo s

  • Link to demo site with this issue: N/A
  • Link(s) to source code or any usefull link(s): N/A

Node.js and NPM Information

node -v
v8.9.4

npm -v
5.6.0

Hexo Information

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

Package dependencies Information

{
  "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 Information

NexT Version:

Next v 6.0.0
[] Latest Master branch.
[] Latest Release version.
[] Old version -

NexT Scheme:

[] All schemes
[x] Muse
[] Mist
[] Pisces
[] Gemini

Other Information

Chrome
IOS X 10.10.5

I wonder if next theme support configuration visual width of article [solved]

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

I agree and want to create new issue


Expected behavior

Actual behavior

Steps to reproduce the behavior

  1. N/A
  2. N/A
  3. N/A
  • Link to demo site with this issue: N/A
  • Link(s) to source code or any usefull link(s): N/A

Hexo Information


NexT Information

NexT Version:

[] Latest Master branch.
[] Latest Release version.
[] Old version - 

NexT Scheme:

[] All schemes
[] Muse
[] Mist
[] Pisces
[] Gemini

Other Information

Underlined category under title ends in an extra blank [solved]

I agree and want to create new issue


Expected behavior

no underlined blank after category name,like this:
NameOfACategory
--------------------------(no extra blank)

Actual behavior

NameOfACategory
---------------------------(an extra blank)

Steps to reproduce the behavior

  1. N/A
  2. N/A
  3. N/A
  • Link to demo site with this issue: mgourd.github.com
  • Link(s) to source code or any usefull link(s): N/A

Node.js and NPM Information

v8.9.1
5.5.1

Package dependencies Information

{
  "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 Information

Hexo version

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

Hexo Configuration

NexT Information

NexT Version:

[x] Latest Master branch.
[] Latest Release version.
[] Old version -

NexT Scheme:

[] All schemes
[] Muse
[] Mist
[] Pisces
[x] Gemini

NexT Configuration:

Other Information

Chrome 63.0.3239.132 64bit
Ubuntu 17.10 64bit
2018-01-15 15-44-48
2018-01-15 15-44-48

The word count at the bottom of the website is not displayed [solved]

I agree and want to create new issue


Expected behavior

The bottom displays the word count information.

Actual behavior

The bottom is blank.

Steps to reproduce the behavior

  1. N/A
  2. N/A
  3. N/A
  • Link to demo site with this issue: N/A
  • Link(s) to source code or any usefull link(s): N/A

Node.js and NPM Information


Package dependencies Information


Hexo Information

Hexo version


Hexo Configuration

NexT Information

NexT Version:

[] Latest Master branch.
[x] Latest Release version.
[] Old version -

NexT Scheme:

[x] All schemes
[] Muse
[] Mist
[] Pisces
[] Gemini

NexT Configuration:

Other Information

The "Custom text" doesn't appear at the end of the page. [solved]

I agree and want to create new issue


Actual behavior

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>

So it should work like this:
custome_text

But it doesn't appear.

custome_text2

Node.js and NPM Information

node: v9.4.0
npm: 5.6.0

Package dependencies Information


  "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"
  }

Hexo version

v3.4.4

NexT Information

NexT Version:

  • Latest Master branch.
  • Latest Release version.
  • Old version -

NexT Scheme:

  • All schemes
  • Muse
  • Mist
  • Pisces
  • Gemini

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.