文档上的注释
Front-matter 采用 YAML 格式
源码:
12345678910---title: # 标题date: # 日期tags: # 标签- categories: # 分类-cover: /img/***.jpg # 封面 相对路径或者使用网址indexing: false # 生成的搜素(此功能需要手动开启)结果将不包含此帖子或页面---
可以参考官方文档
注意事项:
title 不建议写中文或者网站采用hash算法(避免网址中文乱码)
采用hash算法设置(主路径下的_config配置中的下面位置):
12345678910# URL## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'url: https://***.github.io# 改这里 原先是 :year/:month/:day/:title/ -> :year/:month/:day/:hash/permalin ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick Start
Create a new post
1$ hexo new "My New Post"
More info: Writing
Run server
1$ hexo server
More info: Server
Generate static files
1$ hexo generate
More info: Generating
Deploy to remote sites
1$ hexo deploy
More info: Deployment