关于macleaya主题的使用简单说明
须知
要使用该主题,需熟悉 Hexo
macleaya主题下载地址 https://github.com/lsylovelmy/hexo-theme-macleaya.git
配置
1、初始化完hexo项目后,将下载的macleaya主题copy到themes目录下,如图:

2、修改hexo项目根目录的_config.yml文件
这样就成功的使用macleaya主题了
主题配置说明(macleaya/_config.yml)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| # 导航栏 menu: - name: home # 对应languages下的key url: / # 链接 newTab: false # 是否新标签打开
# 右侧栏目 widgets: - user-info # 用户信息栏目 - latest # 最新文章栏目 - category # 分类栏目 - archive # 归档栏目 - label # 云标签栏目
# 网站的favicon favicon: /images/favicon.ico
# 头像 avatar: AVATAR # 名称 author: AUTHOR # 简介 slogan: SLOGAN
|
POST模版说明
1 2 3 4 5
| --- type: hide: keywords: ---
|
| 参数名 |
是否必须 |
含义 |
例子 |
| type |
否 |
文章类型(原创、翻译、转载等) |
type: 原创 |
| hide |
否 |
是否将文章在首页、侧边栏中隐藏 |
hide: true |
| keywords |
否 |
页面的meta的keywords |
|