-
-
- - - <%= __('post.copyright_title') %>: - <%= __('post.copyright_content') %> - -
-
+
- + + <%= __('post.copyright_title') %>: + <%= __('post.copyright_content') %> + +
From 5c501a9db76a17ba90c89dee0678c5e3c55d21a8 Mon Sep 17 00:00:00 2001
From: shen-yu <448766534@qq.com>
Date: Sun, 7 Jun 2020 10:05:53 +0800
Subject: [PATCH] :package: update: minivaline
---
_config.yml | 16 +++-
layout/_partial/article.ejs | 112 ++++++++++++----------------
layout/_partial/post/minivaline.ejs | 48 ++++++++++++
3 files changed, 109 insertions(+), 67 deletions(-)
create mode 100644 layout/_partial/post/minivaline.ejs
diff --git a/_config.yml b/_config.yml
index 0068cf5..81630a5 100644
--- a/_config.yml
+++ b/_config.yml
@@ -112,7 +112,7 @@ 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 填入即可
@@ -135,6 +135,20 @@ gitalk:
owner: # GitHub ID
admin: # GitHub ID
+# 3、MiniValine
+# See: https://github.com/MiniValine/MiniValine
+minivaline:
+ enable: true
+ 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:
# (关闭请设置为false)
diff --git a/layout/_partial/article.ejs b/layout/_partial/article.ejs
index 5d0dfcc..cf1d997 100644
--- a/layout/_partial/article.ejs
+++ b/layout/_partial/article.ejs
@@ -1,85 +1,65 @@
-
-
-
+
+