diff --git a/README.md b/README.md
index 6ff024a..42069fb 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@
-
+
@@ -105,6 +105,8 @@ progressBar: true
excerpt_link: Read More...
excerpt_all: false
+# Copy code button
+copy_btn: true
# Share
share_enable: true
# If you are not in China, maybe you prefer to set:false
diff --git a/_config.yml b/_config.yml
index dc2c888..4fda45d 100644
--- a/_config.yml
+++ b/_config.yml
@@ -11,15 +11,15 @@ menu:
# 站点次标题和打字动效
# https://github.com/mattboldt/typed.js
subtitle:
- enable: true # 是否开启动效
- text: 面朝大海,春暖花开 # 显示的文字
- text2: 愿你一生努力,一生被爱 # 滚动播放,如果不需要可以留空
- text3: 想要的都拥有,得不到的都释怀 # 最多支持三段文字
- startDelay: 0 # 延迟时间
- typeSpeed: 200 # 打字速度
- loop: true # 是否循环
- backSpeed: 100 # 回退速度
- showCursor: true # 是否显示光标
+ enable: true # 是否开启动效
+ text: 面朝大海,春暖花开 # 显示的文字
+ text2: 愿你一生努力,一生被爱 # 滚动播放,如果不需要可以留空
+ text3: 想要的都拥有,得不到的都释怀 # 最多支持三段文字
+ startDelay: 0 # 延迟时间
+ typeSpeed: 200 # 打字速度
+ loop: true # 是否循环
+ backSpeed: 100 # 回退速度
+ showCursor: true # 是否显示光标
# 网站图标和侧边栏logo
favicon: /favicon.ico
@@ -29,10 +29,10 @@ logo: /images/ayer-side.svg
# enable-是否启用封面;path-封面背景图;logo-封面logo
cover:
enable: true
- path: /images/cover1.jpg # /source/images目录下附送多张美图,可更换
+ path: /images/cover1.jpg # /source/images目录下附送多张美图,可更换
logo: false #/images/ayer.svg,如果不要直接设置成false
-# 页面顶部进度条
+# 页面顶部进度条
progressBar: true
# 文章配置
@@ -41,6 +41,8 @@ excerpt_link: 阅读更多...
# 如果你嫌每篇文章手动加more标记比较麻烦,又不想在首页全文显示,可以把excerpt_all设置成true,这样首页只会显示文章归档
excerpt_all: false
+# 是否开启代码复制按钮
+copy_btn: true
# 是否开启文章分享按钮
share_enable: true
# 国内的社交平台(If you are not in China, maybe you prefer to set:false)
@@ -73,11 +75,11 @@ word_count:
# 打赏type设定:0-关闭打赏; 1-文章对应的md文件里有reward:true属性,才有打赏; 2-所有文章均有打赏
reward_type: 2
# 打赏wording
-reward_wording: '请我喝杯咖啡吧~'
+reward_wording: "请我喝杯咖啡吧~"
# 支付宝二维码图片地址,跟你设置logo的方式一样。比如:/images/alipay.jpg
-alipay: /images/alipay.jpg
+alipay: https://cdn.jsdelivr.net/gh/Shen-Yu/cdn/img/alipay.jpg
# 微信二维码图片地址
-weixin: /images/wechat.jpg
+weixin: https://cdn.jsdelivr.net/gh/Shen-Yu/cdn/img/wechat.jpg
# 版权声明
# 版权声明type设定:0-关闭版权声明; 1-文章对应的md文件里有copyright: true属性,才有版权声明; 2-所有文章均有版权声明
@@ -101,14 +103,14 @@ layout:
article_width: 80rem
sidebar_width: 8rem
-# 评论:1、Valine(推荐);2、Gitalk
+# 评论:1、Valine(推荐);2、Gitalk;3、MiniValine
# 1、Valine[一款快速、简洁且高效的无后端评论系统](https://github.com/xCss/Valine)
# 启用Valine必须先创建leancloud应用, 获取 id|key 填入即可
-leancloud:
+leancloud:
enable: true
- app_id: #
- app_key: #
+ app_id: # Your leancloud application appid
+ app_key: # Your leancloud application appkey
# Valine配置
valine:
enable: true # 是否启用
@@ -126,8 +128,22 @@ gitalk:
owner: # GitHub ID
admin: # GitHub ID
+# 3、MiniValine
+# See: https://github.com/MiniValine/MiniValine
+minivaline:
+ enable: false
+ placeholder: Write a Comment # Comment box placeholder
+ adminEmailMd5: # The MD5 of Admin Email to show Admin Flag.
+ math: true # Support MathJax.
+ md: true # Support Markdown.
+ # MiniValine's display language depends on user's browser or system environment
+ # If you want everyone visiting your site to see a uniform language, you can set a force language value
+ # Available values: en | zh-CN | (and many more)
+ # More i18n info: https://github.com/MiniValine/minivaline-i18n
+ lang:
+
# GitHub Ribbons-封面右上角的forkme,换样式直接在source/images目录下替换forkme图片
-github:
+github:
# (关闭请设置为false)
enable: true
url: https://github.com/Shen-Yu/hexo-theme-ayer
@@ -137,8 +153,8 @@ music:
enable: false
# 播放器尺寸类型(1:小尺寸、2:大尺寸)
type: 1
- id: 22707008 # 网易云分享的音乐ID(更换音乐请更改此配置项)
- autoPlay: true # 是否开启自动播放
+ id: 22707008 # 网易云分享的音乐ID(更换音乐请更改此配置项)
+ autoPlay: true # 是否开启自动播放
# 访问量统计(不蒜子)
busuanzi:
@@ -150,9 +166,9 @@ cnzz:
url: https://s9.cnzz.com/z_stat.php?id=1278069914&web_id=1278069914
# Google Analytics
-google_analytics: ''
+google_analytics: ""
# 百度统计
-baidu_analytics: ''
+baidu_analytics: ""
# Mathjax数学公式
mathjax: false
@@ -172,5 +188,5 @@ pageFooter: true
#ICP备案信息尾部显示
icp:
enable: false
- url: 'http://www.beian.miit.gov.cn/' # 备案链接
- text: '浙ICP备88888888' # 备案信息
\ No newline at end of file
+ url: "http://www.beian.miit.gov.cn/" # 备案链接
+ text: "浙ICP备88888888" # 备案信息
diff --git a/languages/de.yml b/languages/de.yml
index d1445f6..90705f3 100644
--- a/languages/de.yml
+++ b/languages/de.yml
@@ -13,10 +13,13 @@ recent_posts: letzter Beitrag
newer: Neuer
older: Älter
share: Teilen
-powered_by: Powered by
+powered_by: Powered by %s
+theme: Theme - %s
rss_feed: RSS Feed
category: Kategorie
tag: Tag
+site_visitors: Visitors
+page_views: Views
post:
word_count: Wortzahl
diff --git a/languages/default.yml b/languages/default.yml
index 7fcfc3b..541c06f 100644
--- a/languages/default.yml
+++ b/languages/default.yml
@@ -1 +1,31 @@
-en.yml
\ No newline at end of file
+categories: Categories
+search: Search
+tags: Tags
+tagcloud: Tag Cloud
+tweets: Tweets
+prev: Prev
+next: Next
+comment: Comments
+archive_a: Archives
+archive_b: "Archives: %s"
+page: Page %d
+recent_posts: Recent Posts
+newer: Newer
+older: Older
+share: Share
+powered_by: Powered by %s
+theme: Theme - %s
+rss_feed: RSS Feed
+category: Category
+tag: Tag
+site_visitors: Visitors
+page_views: Views
+
+post:
+ word_count: Word count
+ read_time: Reading time
+ minutes: min
+ reward: Donate
+ sticky: Sticky
+ copyright_title: Copyright
+ copyright_content: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
diff --git a/languages/en.yml b/languages/en.yml
index 2a78fb7..541c06f 100644
--- a/languages/en.yml
+++ b/languages/en.yml
@@ -13,16 +13,19 @@ recent_posts: Recent Posts
newer: Newer
older: Older
share: Share
-powered_by: Powered by
+powered_by: Powered by %s
+theme: Theme - %s
rss_feed: RSS Feed
category: Category
tag: Tag
+site_visitors: Visitors
+page_views: Views
post:
word_count: Word count
read_time: Reading time
minutes: min
- reward: Reward
+ reward: Donate
sticky: Sticky
copyright_title: Copyright
- copyright_content: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
\ No newline at end of file
+ copyright_content: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
diff --git a/languages/es.yml b/languages/es.yml
index eedbd05..9d0e04e 100644
--- a/languages/es.yml
+++ b/languages/es.yml
@@ -13,10 +13,13 @@ recent_posts: Posts recientes
newer: Nuevo
older: Viejo
share: Compartir
-powered_by: Construido por
+powered_by: Powered by %s
+theme: Theme - %s
rss_feed: RSS
category: Categoría
tag: Tag
+site_visitors: Visitors
+page_views: Views
post:
word_count: El recuento de palabras
diff --git a/languages/fr.yml b/languages/fr.yml
index 9d9299a..6bef091 100644
--- a/languages/fr.yml
+++ b/languages/fr.yml
@@ -13,10 +13,13 @@ recent_posts: Articles récents
newer: Récent
older: Ancien
share: Partager
-powered_by: Propulsé par
+powered_by: Powered by %s
+theme: Theme - %s
rss_feed: Flux RSS
category: Catégorie
tag: Mot-clé
+site_visitors: Visitors
+page_views: Views
post:
word_count: Nombre de mots
diff --git a/languages/ja.yml b/languages/ja.yml
index 3817bfc..bc5f521 100644
--- a/languages/ja.yml
+++ b/languages/ja.yml
@@ -13,10 +13,13 @@ recent_posts: 最近の投稿
newer: 次の記事
older: 前の記事
share: 共有
-powered_by: Powered by
+powered_by: Powered by %s
+theme: Theme - %s
rss_feed: RSSフィード
category: カテゴリ
tag: タグ
+site_visitors: Visitors
+page_views: Views
post:
word_count: 単語数
diff --git a/languages/ko.yml b/languages/ko.yml
index 67b6224..d4e6738 100644
--- a/languages/ko.yml
+++ b/languages/ko.yml
@@ -13,10 +13,13 @@ recent_posts: 최근 포스트
newer: 최신
older: 이전
share: 공유
-powered_by: Powered by
+powered_by: Powered by %s
+theme: Theme - %s
rss_feed: RSS Feed
category: 카테고리
tag: 태그
+site_visitors: Visitors
+page_views: Views
post:
word_count: 단어 수
diff --git a/languages/nl.yml b/languages/nl.yml
index 7031301..1a54403 100644
--- a/languages/nl.yml
+++ b/languages/nl.yml
@@ -13,10 +13,13 @@ recent_posts: Recente berichten
newer: Nieuwer
older: Ouder
share: Delen
-powered_by: Powered by
+powered_by: Powered by %s
+theme: Theme - %s
rss_feed: RSS Feed
category: Categorie
tag: Label
+site_visitors: Visitors
+page_views: Views
post:
word_count: Aantal woorden in artikel
diff --git a/languages/no.yml b/languages/no.yml
index 914ec83..51bb637 100644
--- a/languages/no.yml
+++ b/languages/no.yml
@@ -13,10 +13,13 @@ recent_posts: Siste innlegg
newer: Newer
older: Older
share: Share
-powered_by: Powered by
+powered_by: Powered by %s
+theme: Theme - %s
rss_feed: RSS Feed
category: Category
tag: Tag
+site_visitors: Visitors
+page_views: Views
post:
word_count: Ordtelling
diff --git a/languages/pt.yml b/languages/pt.yml
index 1dfff49..a243e36 100644
--- a/languages/pt.yml
+++ b/languages/pt.yml
@@ -13,10 +13,13 @@ recent_posts: Postagens Recentes
newer: Mais Recente
older: Mais Antigo
share: Compartilhar
-powered_by: Desenvolvido por
+powered_by: Powered by %s
+theme: Theme - %s
rss_feed: Feed RSS
category: Categoria
tag: Tag
+site_visitors: Visitors
+page_views: Views
post:
word_count: Word count
diff --git a/languages/ru.yml b/languages/ru.yml
index 7df2b91..9756e83 100644
--- a/languages/ru.yml
+++ b/languages/ru.yml
@@ -13,10 +13,13 @@ recent_posts: Недавние записи
newer: Следующий
older: Предыдущий
share: Поделиться
-powered_by: Создано с помощью
+powered_by: Powered by %s
+theme: Theme - %s
rss_feed: RSS-каналы
category: Категория
tag: Метка
+site_visitors: Visitors
+page_views: Views
post:
word_count: Количество слов
diff --git a/languages/vi.yml b/languages/vi.yml
index 82b7f74..d723a2f 100644
--- a/languages/vi.yml
+++ b/languages/vi.yml
@@ -13,10 +13,13 @@ recent_posts: Bài viết gần đây
newer: mới hơn
older: lớn hơn
share: chia sẻ
-powered_by: Powered by
+powered_by: Powered by %s
+theme: Theme - %s
rss_feed: RSS Feed
category: Thể loại
tag: thẻ
+site_visitors: Visitors
+page_views: Views
post:
word_count: Đếm từ
diff --git a/languages/zh-CN.yml b/languages/zh-CN.yml
index 3bac094..6b0ac7e 100644
--- a/languages/zh-CN.yml
+++ b/languages/zh-CN.yml
@@ -13,10 +13,13 @@ recent_posts: 最新文章
newer: Newer
older: Older
share: 分享
-powered_by: Powered by
+powered_by: 由 %s 强力驱动
+theme: 主题 - %s
rss_feed: RSS Feed
category: Category
tag: Tag
+site_visitors: 访问人数
+page_views: 浏览次数
post:
word_count: 字数统计
diff --git a/languages/zh-TW.yml b/languages/zh-TW.yml
index de2919c..9159718 100644
--- a/languages/zh-TW.yml
+++ b/languages/zh-TW.yml
@@ -13,10 +13,13 @@ recent_posts: 最新文章
newer: Newer
older: Older
share: Share
-powered_by: Powered by
+powered_by: Powered by %s
+theme: Theme - %s
rss_feed: RSS Feed
category: Category
tag: Tag
+site_visitors: Visitors
+page_views: Views
post:
word_count: 字數統計
diff --git a/layout/_partial/after-footer.ejs b/layout/_partial/after-footer.ejs
index 717e697..80a07ed 100644
--- a/layout/_partial/after-footer.ejs
+++ b/layout/_partial/after-footer.ejs
@@ -62,4 +62,10 @@
<% if (theme.clickLove){ %>
<%- js('/js/clickLove') %>
-<% } %>
\ No newline at end of file
+<% } %>
+
+
+<% if (theme.copy_btn == true) { %>
+ <%- css('/css/clipboard') %>
+ <%- partial('post/clipboard') %>
+<% } %>
diff --git a/layout/_partial/article.ejs b/layout/_partial/article.ejs
index 5d0dfcc..b9ae2bc 100644
--- a/layout/_partial/article.ejs
+++ b/layout/_partial/article.ejs
@@ -81,5 +81,9 @@
<% if (is_post()) { %>
<%- partial('post/gitalk') %>
<% } %>
+
+ <% if (theme.minivaline && theme.minivaline.enable && !post.no_minivaline){ %>
+ <%- partial('post/minivaline') %>
+ <% } %>
\ No newline at end of file
diff --git a/layout/_partial/footer.ejs b/layout/_partial/footer.ejs
index cec4f28..ade976b 100644
--- a/layout/_partial/footer.ejs
+++ b/layout/_partial/footer.ejs
@@ -1,32 +1,39 @@