# URL ## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project' url:https://zhycarge.github.io/ permalink::year/:month/:day/:title/ permalink_defaults: pretty_urls: trailing_index:true# Set to false to remove trailing 'index.html' from permalinks trailing_html:true# Set to false to remove trailing '.html' from permalinks
# Writing new_post_name::title.md# File name of new posts default_layout:post titlecase:false# Transform title into titlecase external_link: enable:true# Open external links in new tab field:site# Apply to the whole site exclude:'' filename_case:0 render_drafts:false post_asset_folder:false relative_link:false future:true syntax_highlighter:highlight.js highlight: line_number:true auto_detect:false tab_replace:'' wrap:true hljs:false prismjs: preprocess:true line_number:true 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
关键词
解释
index_generator.path
博客索引页的根路径
index_generator.per_page
每页显示的帖子数量
index_generator.order_by
帖子排序。默认按日期降序排列(从新到旧)
分类和标签
不知道有什么别的用途emmm有待进一步学习
1 2 3 4
# Category & Tag default_category:uncategorized category_map: tag_map:
关键词
解释
default_category
默认类别
category_map
覆盖类别 slug
tag_map
覆盖标签
Metadata 数据信息
1 2 3
# Metadata elements ## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta meta_generator:true
# 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 ## updated_option supports 'mtime', 'date', 'empty' updated_option:'mtime'
关键词
解释
date_format
日期格式
time_format
时间格式
updated_option
更新时间格式。当文章中不存在updated值时使用的默认值
文章分页
1 2 3 4
# Pagination ## Set per_page to 0 to disable pagination per_page:10 pagination_dir:page