mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-03 22:22:00 +08:00
fix bugs
This commit is contained in:
1 parent
79971d49db
commit
5a3363e0e4
37 files changed
+2945
-408
No files matched your search
@@ -4,12 +4,18 @@
|
||||
|
||||
一款基于[hexo-theme-melody](https://github.com/Molunerfinn/hexo-theme-melody)修改的主题
|
||||
|
||||
处于dev阶段,一些功能需要时间去适配(例如夜间模式)
|
||||
|
||||
## 安装
|
||||
在你的博客目录里
|
||||
|
||||
在你的博客根目录里
|
||||
|
||||
```
|
||||
git clone https://github.com/jerryc127/hexo-theme-butterfly.git themes/Butterfly
|
||||
git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/Butterfly
|
||||
```
|
||||
|
||||
如果想要安裝比較新的dev分支,可以
|
||||
|
||||
```
|
||||
git clone -b div https://github.com/jerryc127/hexo-theme-butterfly.git themes/Butterfly
|
||||
```
|
||||
|
||||
## 应用主题
|
||||
@@ -22,39 +28,10 @@ theme: Butterfly
|
||||
>如果你没有pug以及stylus的渲染器,请下载安装: npm install hexo-renderer-jade hexo-renderer-stylus --save or yarn add hexo-renderer-jade hexo-renderer-stylus
|
||||
|
||||
## 文档
|
||||
可查看[这里](https://molunerfinn.com/hexo-theme-melody-doc/zh-Hans/#%E7%89%B9%E6%80%A7)
|
||||
|
||||
一些不同的东西后续补上教程
|
||||
可查看[这里](https://jerryc.me/posts/21cfbf15)
|
||||
|
||||
|
||||
## Front-matter
|
||||
|
||||
page页
|
||||
```
|
||||
---
|
||||
title: {{ title }}
|
||||
date: {{ date }}
|
||||
comments:
|
||||
reward:
|
||||
description:
|
||||
top_img:
|
||||
cover: (封面)
|
||||
---
|
||||
```
|
||||
|
||||
post页
|
||||
```
|
||||
---
|
||||
title: {{ title }}
|
||||
date: {{ date }}
|
||||
tags:
|
||||
categories:
|
||||
keywords:
|
||||
description:
|
||||
top_img:
|
||||
cover:
|
||||
---
|
||||
```
|
||||
|
||||
## 截图
|
||||

|
||||
|
||||
+25
-35
@@ -25,7 +25,6 @@ menu:
|
||||
|
||||
|
||||
# Favicon
|
||||
# use my-favicon.ico to avoid duplicate favicon of melody theme
|
||||
# ---------------
|
||||
favicon: /img/favicon.ico
|
||||
|
||||
@@ -72,7 +71,7 @@ algolia_search:
|
||||
|
||||
|
||||
# Local search
|
||||
# Please see doc for more details: https://molunerfinn.com/hexo-theme-melody-doc/#/third-party-support?id=local-search
|
||||
# Please see doc for more details: https://jerryc.me/posts/21cfbf15/#本地搜索
|
||||
# ---------------
|
||||
local_search:
|
||||
enable: false
|
||||
@@ -81,7 +80,7 @@ local_search:
|
||||
hits_empty: "We didn't find any results for the search: ${query}" # if there are no result
|
||||
|
||||
# MathJax
|
||||
# Please see doc for more details: https://molunerfinn.com/hexo-theme-melody-doc/#/third-party-support?id=mathjax
|
||||
# Please see doc for more details: https://jerryc.me/posts/21cfbf15/#MathJax
|
||||
# ---------------
|
||||
mathjax:
|
||||
enable: false
|
||||
@@ -105,7 +104,6 @@ katex:
|
||||
google_analytics:
|
||||
|
||||
|
||||
|
||||
# stylesheets loaded in the <head>
|
||||
# ---------------
|
||||
stylesheets:
|
||||
@@ -116,8 +114,6 @@ stylesheets:
|
||||
scripts:
|
||||
- /js/utils.js
|
||||
- /js/main.js
|
||||
- /js/baidupush.js
|
||||
|
||||
|
||||
# cdn for third-party library
|
||||
# ---------------
|
||||
@@ -160,11 +156,11 @@ lodding_bg:
|
||||
|
||||
|
||||
post_meta:
|
||||
date_type: both # or updated 文章日期是创建日或者更新日
|
||||
date_type: both # or created or updated 文章日期是创建日或者更新日或都显示
|
||||
categories: true # or false 是否显示分类
|
||||
tags: true # or false 是否显示标签
|
||||
|
||||
# Please see doc for more details: https://molunerfinn.com/hexo-theme-melody-doc/#/additional-package-support?id=word-counting
|
||||
# Please see doc for more details: https://jerryc.me/posts/21cfbf15/#字数统计
|
||||
wordcount:
|
||||
enable: false
|
||||
|
||||
@@ -181,16 +177,11 @@ post_copyright:
|
||||
license: CC BY-NC-SA 4.0
|
||||
license_url: https://creativecommons.org/licenses/by-nc-sa/4.0/
|
||||
|
||||
# Please see doc for more details: https://molunerfinn.com/hexo-theme-melody-doc/#/theme-config?id=auto-excerpt
|
||||
auto_excerpt:
|
||||
enable: true
|
||||
length: 150
|
||||
|
||||
|
||||
# adv:
|
||||
# enable: false
|
||||
# info:
|
||||
|
||||
# Share System
|
||||
# ---------------
|
||||
addThis:
|
||||
@@ -201,15 +192,23 @@ sharejs:
|
||||
enable: true
|
||||
sites: facebook,twitter,wechat,weibo,qq
|
||||
|
||||
# https://www.addtoany.com/
|
||||
addtoany:
|
||||
enable: false
|
||||
item:
|
||||
- facebook
|
||||
- twitter
|
||||
- wechat
|
||||
- sina_weibo
|
||||
- facebook_messenger
|
||||
- email
|
||||
- copy_link
|
||||
|
||||
# Comments System
|
||||
# ---------------
|
||||
disqus:
|
||||
enable: false
|
||||
shortname:
|
||||
count: true
|
||||
|
||||
# laibili:
|
||||
# enable: false
|
||||
@@ -242,7 +241,7 @@ valine:
|
||||
verify: false # valine verify code (true/false)
|
||||
pageSize: 10 # comment list page size
|
||||
avatar: monsterid # gravatar style https://valine.js.org/#/avatar
|
||||
lang: en # i18n: zh-cn/en
|
||||
lang: en # i18n: zh-cn/en/tw
|
||||
placeholder: Please leave your footprints # valine comment input placeholder(like: Please leave your footprints )
|
||||
guest_info: nick,mail,link #valine comment header inf
|
||||
|
||||
@@ -257,7 +256,8 @@ footer_copyright:
|
||||
|
||||
ICP:
|
||||
enable: false
|
||||
# text:
|
||||
url:
|
||||
text:
|
||||
|
||||
# busuanzi count for PV / UV in site
|
||||
busuanzi:
|
||||
@@ -267,10 +267,6 @@ busuanzi:
|
||||
|
||||
|
||||
|
||||
# Follow Me Button
|
||||
follow:
|
||||
enable: true
|
||||
|
||||
|
||||
# Google Webmaster tools verification setting
|
||||
# See: https://www.google.com/webmasters/
|
||||
@@ -302,20 +298,6 @@ Flink:
|
||||
comment: 如果需要交換友鏈,請留言
|
||||
|
||||
|
||||
## friendlink
|
||||
|
||||
flinks:
|
||||
[
|
||||
{'name': 'JerryC',
|
||||
'link': 'https://jerryc.me/',
|
||||
'avatar': 'https://jerryc.me/img/avatar.png',
|
||||
'descr': '今日事,今日畢'},
|
||||
{'name': 'molunerfinn',
|
||||
'link':'https://molunerfinn.com',
|
||||
'avatar': 'https://blog-1251750343.cos.ap-beijing.myqcloud.com/blog/avatar.jpeg',
|
||||
'descr': 'For MElody'}
|
||||
]
|
||||
|
||||
|
||||
runtimeshow:
|
||||
enable: true
|
||||
@@ -346,7 +328,7 @@ reward:
|
||||
|
||||
related_post:
|
||||
enable: true
|
||||
|
||||
limit: 6 # 顯示推薦文章數目
|
||||
|
||||
# canvas_ribbon
|
||||
# See: https://github.com/hustcc/ribbon.js
|
||||
@@ -413,3 +395,11 @@ translate:
|
||||
#當文字是繁體時,按鈕顯示的文字
|
||||
msgToSimplifiedChinese: "简"
|
||||
|
||||
|
||||
# 鼠標點擊效果
|
||||
fireworks:
|
||||
enable: false
|
||||
|
||||
#百度推送
|
||||
baidu_push:
|
||||
enable: false
|
||||
Loaded 3 of 37 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user