Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Configure theme diaspora #14

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions _config.apollo.yml

This file was deleted.

94 changes: 94 additions & 0 deletions _config.diaspora.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# 头部菜单,title: link
menu:
首页: /
分类: /categories
标签: /tags
归档: /archives
关于: /about

# 是否显示目录
TOC: false

# 是否自动播放音乐
autoplay: false

# 默认音乐(随机播放)
mp3:
- http://link.hhtjim.com/163/425570952.mp3
- http://link.hhtjim.com/163/425570952.mp3

# 首页封面图, 为空时取文章的cover作为封面(注意跨域问题,建议使用同源图片)
welcome_cover: /img/welcome-cover.jpg

# 默认文章封面图(随机调用,支持外链)
cover:
- /img/cover.jpg
- /img/welcome-cover.jpg


# 是否使用mathjax
mathjax: false


# 是否关闭默认滚动条
scrollbar: true

# 本地搜索,请将索引文件放在网站根目录,或修改主题js文件的path值
local_search:
# 是否启用
enable: false

# 是否显示 一言(hitokoto)
hitokoto: false

# 链接(可选:facebook,twitter,github,wechat,email)
links:
facebook: /
twitter: /
github: /
wechat: /img/logo.png
email: mailto:[email protected]

# 备案
beian:
# 是否显示备案信息
enable: false
# 是否在主页面最底下显示备案信息(虽然丑,但是完全满足规定要求)
enableFooter: false
# 备案号
beianInfo: 冀ICP备xxxxxxx号
# 链接地址
link: http://www.beian.miit.gov.cn

# Gitalk 评论插件(https://github.com/gitalk/gitalk)
gitalk:
# 是否启用评论功能
enable: false
# 是否自动展开评论框
autoExpand: false
# 应用编号
clientID: ''
# 应用秘钥
clientSecret: ''
# issue仓库名
repo: ''
# Github名
owner: ''
# Github名
admin: ['']
# Ensure uniqueness and length less than 50
id: location.pathname
# Facebook-like distraction free mode
distractionFreeMode: false

# 网站关键字
keywords: Fechin

# 要使用google_analytics进行统计的话,这里需要配置ID
google_analytics:

# 网站ico
favicon: /img/favicon.png

# rss文件
rss: atom.xml
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ ignore:
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: apollo
theme: diaspora

# Deployment
## Docs: https://hexo.io/docs/one-command-deployment
Expand Down
2 changes: 1 addition & 1 deletion install_theme.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
git clone https://github.com/pinggod/hexo-theme-apollo.git themes/apollo
git clone --depth 1 https://github.com/Fechin/hexo-theme-diaspora.git themes/diaspora
Loading