You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

260 lines
7.8 KiB

6 years ago
############################### 基本信息 ###############################
info:
6 years ago
name: Material X
docs: https://xaoxuu.com/wiki/material-x/
5 years ago
cdn: # 把对应的那一行注释掉就使用本地的文件
5 years ago
css:
5 years ago
style: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.18/css/style.css
5 years ago
js:
5 years ago
app: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.18/js/app.js
search: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.18/js/search.js
5 years ago
volantis: https://cdn.jsdelivr.net/gh/xaoxuu/volantis@1/js/volantis.min.js
6 years ago
5 years ago
############################### 主题风格 ###############################
6 years ago
# style: material # material: 导航栏和标题栏背景是主题色
style: pure # pure: 导航栏和标题栏背景是白色
6 years ago
############################### 服务开关 ###############################
5 years ago
scrollreveal: true
nodewaves: true
busuanzi: true
# fastclick: true
5 years ago
6 years ago
5 years ago
############################### 默认值 ###############################
6 years ago
# 音乐控件的默认配置,如果sidebar或者page里没有提供,就取这里的参数
music:
5 years ago
enable: true # 是否启用
6 years ago
color: '#1BCDFC' # 主题色
mode: circulation # random (随机) single (单曲) circulation (列表循环) order (列表)
server: netease # netease(网易云音乐)tencent(QQ音乐) xiami(虾米) kugou(酷狗)
type: playlist # song (单曲) album (专辑) playlist (歌单) search (搜索)
5 years ago
id: 2615636388 # 歌曲/专辑/歌单 ID
6 years ago
volume: 0.7 # 音量, 0~1
autoplay: false # 自动播放
6 years ago
6 years ago
# 友链页头像占位图
5 years ago
avatar_placeholder: https://cdn.jsdelivr.net/gh/xaoxuu/assets@master/avatar/avatar.png
5 years ago
# 日期格式 http://momentjs.com/docs/
5 years ago
date_format: 'YYYY-MM-DD' # 文章发布日期的格式
5 years ago
updated_date_format: 'll' # 文章更新日期的格式
6 years ago
5 years ago
############################### 自定义 ###############################
5 years ago
# page的封面
cover:
5 years ago
scheme: search # 后期将会提供多种封面方案
5 years ago
# height: half # full(默认值): 首页封面占据整个第一屏幕,其他页面占半个屏幕高度, half: 所有页面都封面都只占半个屏幕高度
5 years ago
title: "Material X"
5 years ago
# logo: assets/logo.png # logo和title只显示一个,若同时设置,则只显示logo
5 years ago
# search_placeholder: '搜索'
5 years ago
# 主页封面菜单
5 years ago
features:
5 years ago
- name: 博文
icon: fas fa-rss
5 years ago
url: /
5 years ago
- name: 项目
icon: fas fa-code-branch
url: projects/
5 years ago
- name: 友链
icon: fas fa-link
url: friends/
5 years ago
rel: nofollow
5 years ago
- name: 关于
icon: fas fa-info-circle
url: about/
5 years ago
rel: nofollow
5 years ago
5 years ago
5 years ago
# 桌面端导航栏菜单
5 years ago
menu_desktop:
5 years ago
- name: 示例
icon: fas fa-grin
url: /
- name: 分类
icon: fas fa-folder-open
url: blog/categories/
rel: nofollow
- name: 标签
icon: fas fa-hashtag
url: blog/tags/
rel: nofollow
- name: 归档
icon: fas fa-archive
url: blog/archives/
5 years ago
rel: nofollow
5 years ago
5 years ago
# 手机端导航菜单(从右上角的按钮点击展开)
5 years ago
menu_mobile:
5 years ago
- name: 近期文章
icon: fas fa-clock
url: /
- name: 文章归档
icon: fas fa-archive
url: blog/archives/
5 years ago
rel: nofollow
5 years ago
- name: 开源项目
5 years ago
icon: fas fa-code-branch
url: projects/
5 years ago
- name: 我的友链
icon: fas fa-link
url: friends/
5 years ago
rel: nofollow
5 years ago
- name: 主题文档
icon: fas fa-book
5 years ago
url: https://xaoxuu.com/wiki/material-x/
5 years ago
rel: nofollow
5 years ago
- name: 关于小站
icon: fas fa-info-circle
url: about/
5 years ago
rel: nofollow
5 years ago
5 years ago
# 默认的meta信息,文章中没有配置则按照这里的配置来显示,设置为false则不显示
5 years ago
# 其中,title只在header中有效,music和thumbnail无需在这里设置,文章中有则显示
5 years ago
# 如果tags放置在meta.header中,那么在post列表中不显示(因为卡片下方已经有了)
meta:
5 years ago
header: [title, author, date, categories, counter, top]
5 years ago
footer: [updated, tags, share]
5 years ago
# 主体元素,你也可以在页面的Front-matter中设置
body: [article, comments]
5 years ago
5 years ago
# 侧边栏小部件,默认按下面给定的顺序全部显示,文章中还可以自定义显示一部分以及顺序
5 years ago
sidebar:
- widget: author
avatar: https://cdn.jsdelivr.net/gh/xaoxuu/assets@master/avatar/avatar.png
social: true
- widget: toc
5 years ago
- widget: grid
5 years ago
icon: fas fa-map-signs
title: 站内导航
rows:
5 years ago
- name: 近期文章
icon: fas fa-clock
url: /
5 years ago
- name: 文章归档
icon: fas fa-archive
5 years ago
url: blog/archives/
5 years ago
rel: nofollow
5 years ago
- name: 开源项目
icon: fas fa-code-branch
url: projects/
5 years ago
- name: 我的友链
icon: fas fa-link
url: friends/
5 years ago
rel: nofollow
5 years ago
- name: 主题文档
icon: fas fa-book
5 years ago
url: https://xaoxuu.com/wiki/material-x/
5 years ago
rel: nofollow
5 years ago
- name: 关于小站
icon: fas fa-info-circle
url: about/
5 years ago
rel: nofollow
5 years ago
- widget: category
more:
icon: fas fa-expand-arrows-alt
5 years ago
url: blog/categories/
5 years ago
rel: nofollow
5 years ago
- widget: tagcloud
icon: fas fa-fire
more:
icon: fas fa-expand-arrows-alt
5 years ago
url: blog/tags/
5 years ago
rel: nofollow
5 years ago
# - widget: related_posts # 需要安装插件 npm i -S hexo-related-popular-posts
5 years ago
- widget: music
icon: fas fa-compact-disc
title: "最近在听"
more:
icon: far fa-heart
url: https://music.163.com/#/user/home?id=63035382
5 years ago
rel: external nofollow noopener noreferrer
target: _blank
5 years ago
server: netease # netease(网易云音乐)tencent(QQ音乐) xiami(虾米) kugou(酷狗)
type: playlist # song (单曲) album (专辑) playlist (歌单) search (搜索)
id: 2615636388 # 歌曲/专辑/歌单 ID
5 years ago
5 years ago
# 社交信息
social:
- icon: fas fa-rss
url: atom.xml
- icon: fas fa-envelope
url: mailto:me@xaoxuu.com
- icon: fab fa-github
url: https://github.com/xaoxuu
- icon: fas fa-headphones-alt
url: https://music.163.com/#/user/home?id=63035382
5 years ago
5 years ago
# 分享按钮
5 years ago
# 当id为qrcode时需要安装插件 npm i -S hexo-helper-qrcode
5 years ago
share:
- id: qq
name: QQ好友
img: https://cdn.jsdelivr.net/gh/xaoxuu/assets@19.1.9/logo/128/qq.png
- id: qzone
name: QQ空间
img: https://cdn.jsdelivr.net/gh/xaoxuu/assets@19.1.9/logo/128/qzone.png
5 years ago
# - id: qrcode
# name: 微信
# img: https://cdn.jsdelivr.net/gh/xaoxuu/assets@19.1.9/logo/128/wechat.png
5 years ago
- id: weibo
name: 微博
img: https://cdn.jsdelivr.net/gh/xaoxuu/assets@19.1.9/logo/128/weibo.png
5 years ago
# - id: qrcode
# name: QRcode
# img: https://cdn.jsdelivr.net/gh/xaoxuu/assets@19.1.9/logo/128/qrcode.png
5 years ago
5 years ago
5 years ago
# footer: '页脚文字,支持[markdown](/)'
5 years ago
5 years ago
############################### 杂项,请勿删除 ###############################
#valine配置
5 years ago
valine:
enable: true # 如果你想用Valine评论系统,请设置enable为true
5 years ago
volantis: true # 是否启用volantis版本(禁止匿名,增加若干贴吧、QQ表情)
5 years ago
# 还需要在根目录配置文件中添加下面这三行内容
# leancloud:
# app_id: 你的appId
# app_key: 你的appKey
guest_info: nick,mail,link #valine comment header info
placeholder: 快来评论吧~ # valine comment input placeholder(like: Please leave your footprints )
avatar: mp # gravatar style https://valine.js.org/avatar
5 years ago
pageSize: 10 # comment list page size
5 years ago
verify: false # valine verify code (true/false)
notify: false # valine mail notify (true/false)
lang: zh-cn
highlight: false
5 years ago
# 搜索配置
search:
6 years ago
enable: true
service: hexo
# google
google_api_key:
google_engine_id:
# algolia
algolia_app_id:
algolia_api_key:
algolia_index_name:
# azure
azure_service_name:
azure_index_name:
azure_query_key:
# baidu
baidu_api_id:
5 years ago
# Less渲染
6 years ago
less:
compress: true