Hexo网站配置

你可以在_config.yml中配置网站

站点

参数 描述
title 网站标题
subtitle 网站子标题
description 网站描述
author 网站所有者
language 网站语言。可用的语言在这里,默认为en
timezone 网站时区。可用的时区在这里,例:America/New_York, Japan, and UTC

链接

参数 描述
url 你的网站链接
root 你的
permalink 文章链接格式,默认为::year/:month/:day/:title/

子目录站点设置

如果你的站点具有子目录,(例如:http://example.org/blog)设置urlhttp://example.org/blog
设置root为/blog/

目录

参数 描述 默认值
source_dir 源目录。放置文章的目录 source
public_dir 发布目录。静态网页生成的目录 public
tag_dir 标签目录 tags
archive_dir 归档目录 archives
category_dir 分类目录 categories
code_dir Include code directory (subdirectory of source_dir) downloads/code
i18n_dir i18n directory :lang
skip_render Paths not to be rendered. You can use glob expressions for path matching