Skip to content
Vi edited this page May 26, 2015 · 2 revisions

这是一份 NexT 主题配置参考,配置分为两个部分。第一个部分写在 Hexo 站点的 _config.yml 中,另外一部分在主题的 _config.yml 中。

在站点的 _config.yml 中新增 NexT 相关的配置,位置随意

# =============================================================================
# NexT Theme configuration
# =============================================================================

avatar: https://avatars1.githubusercontent.com/u/32269?v=3&s=460

# Duoshuo
duoshuo_shortname: notes-iissnan

# Disqus
disqus_shortname: 


# Social links
social:
  GitHub: https://github.com/iissnan
  Twitter: https://twitter.com/iissnan
  Weibo: http://weibo.com/iissnan
  DouBan: http://douban.com/people/iissnan
  ZhiHu: http://www.zhihu.com/people/iissnan


# 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

# Google Webmaster tools verification setting
# See: https://www.google.com/webmasters/
google_site_verification: VvyjvVXcJQa0QklHipu6pwm2PJGnnchIqX7s5JbbT_0


# Google Analytics
# Google分析ID
google_analytics:


# 百度分析ID
baidu_analytics: 50c15455e37f70aea674ff4a663eef27

# Specify the date when the site was setup
since: 2011

# =============================================================================
# End NexT Theme configuration
# =============================================================================

主题配置文件 _config.yml 中的配置

menu:
  home: /
  categories: /categories
  archives: /archives
  tags: /tags
  #about: /about

# Place your favicon.ico to /source directory.
favicon: /favicon.ico

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

# Icon fonts
# Place your font into next/source/fonts, specify directory-name and font-name here
# Avialable: default | linecons | fifty-shades | feather
#icon_font: default
#icon_font: fifty-shades
#icon_font: feather
icon_font: linecons

# Code Highlight theme
# Available value: normal | night | night eighties | night blue | night bright
# https://github.com/chriskempson/tomorrow-theme
highlight_theme: normal


# MathJax Support
mathjax:


# Schemes
scheme: Mist


# Automatically scroll page to section which is under <!-- more --> mark.
scroll_to_more: true



# Automatically add list number to toc.
toc_list_number: true


## DO NOT EDIT THE FOLLOWING SETTINGS
## UNLESS YOU KNOW WHAT YOU ARE DOING

# Use velocity to animate everything.
use_motion: true

# Fancybox
fancybox: true

# Static files
vendors: vendors
css: css
images: images

# Theme version
version: 0.4.2