MiniValine2.7.0更新配置
This commit is contained in:
parent
6a925ba53c
commit
9da6ecc35d
28
_config.yml
28
_config.yml
@ -139,15 +139,41 @@ gitalk:
|
|||||||
# See: https://github.com/MiniValine/MiniValine
|
# See: https://github.com/MiniValine/MiniValine
|
||||||
minivaline:
|
minivaline:
|
||||||
enable: true
|
enable: true
|
||||||
|
mode: DesertsP # DesertsP or xCss
|
||||||
placeholder: Write a Comment # Comment box placeholder
|
placeholder: Write a Comment # Comment box placeholder
|
||||||
adminEmailMd5: # The MD5 of Admin Email to show Admin Flag.
|
|
||||||
math: true # Support MathJax.
|
math: true # Support MathJax.
|
||||||
md: true # Support Markdown.
|
md: true # Support Markdown.
|
||||||
|
enableQQ: false # Enable QQ avatar API.
|
||||||
|
NoRecordIP: false # Do not record commenter IP.
|
||||||
|
visitor: true # Article reading statistics.
|
||||||
|
maxNest: 6 # Sub-comment maximum nesting depth.
|
||||||
|
pageSize: 6 # Pagination size.
|
||||||
|
adminEmailMd5: de8a7aa53d07e6b6bceb45c64027763d # The MD5 of Admin Email to show Admin Flag.[Just Only DesertsP Style mode]
|
||||||
|
tagMeta: # The String Array of Words to show Flag.[Just Only xCss Style mode]
|
||||||
|
- 管理员
|
||||||
|
- 小伙伴
|
||||||
|
- 访客
|
||||||
|
master: # The MD5 String Array of master Email to show master Flag.[Just Only xCss Style mode]
|
||||||
|
- de8a7aa53d07e6b6bceb45c64027763d
|
||||||
|
friends: # The MD5 String Array of friends Email to show friends Flag.[Just Only xCss Style mode]
|
||||||
|
- b5bd5d836c7a0091aa8473e79ed4c25e
|
||||||
|
- adb7d1cd192658a55c0ad22a3309cecf
|
||||||
|
- 3ce1e6c77b4910f1871106cb30dc62b0
|
||||||
|
- cfce8dc43725cc14ffcd9fb4892d5bfc
|
||||||
# MiniValine's display language depends on user's browser or system environment
|
# 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
|
# 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)
|
# Available values: en | zh-CN | (and many more)
|
||||||
# More i18n info: https://github.com/MiniValine/minivaline-i18n
|
# More i18n info: https://github.com/MiniValine/minivaline-i18n
|
||||||
lang:
|
lang:
|
||||||
|
# Expression Url.
|
||||||
|
# https://github.com/MiniValine/MiniValine/blob/master/.github/FAQ.md#how-to-customize-emoticons
|
||||||
|
emoticonUrl:
|
||||||
|
- https://cdn.jsdelivr.net/npm/alus@latest
|
||||||
|
- https://cdn.jsdelivr.net/gh/MiniValine/qq@latest
|
||||||
|
- https://cdn.jsdelivr.net/gh/MiniValine/Bilibilis@latest
|
||||||
|
- https://cdn.jsdelivr.net/gh/MiniValine/tieba@latest
|
||||||
|
- https://cdn.jsdelivr.net/gh/MiniValine/twemoji@latest
|
||||||
|
- https://cdn.jsdelivr.net/gh/MiniValine/weibo@latest
|
||||||
|
|
||||||
# GitHub Ribbons-封面右上角的forkme,换样式直接在source/images目录下替换forkme图片
|
# GitHub Ribbons-封面右上角的forkme,换样式直接在source/images目录下替换forkme图片
|
||||||
github:
|
github:
|
||||||
|
@ -5,16 +5,28 @@
|
|||||||
</div>
|
</div>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/minivaline@2/dist/MiniValine.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/minivaline@2/dist/MiniValine.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
new MiniValine({
|
new MiniValine({
|
||||||
el: '#mvcomments',
|
el: '#mvcomments',
|
||||||
appId: '<%- theme.leancloud.app_id %>',
|
appId: '<%- theme.leancloud.app_id %>',
|
||||||
appKey: '<%- theme.leancloud.app_key %>',
|
appKey: '<%- theme.leancloud.app_key %>',
|
||||||
placeholder: '<%- theme.minivaline.placeholder %>',
|
mode: '<%- theme.minivaline.mode %>',
|
||||||
lang: '<%- theme.minivaline.lang %>',
|
placeholder: '<%- theme.minivaline.placeholder %>',
|
||||||
adminEmailMd5: '<%- theme.minivaline.adminEmailMd5 %>',
|
pathname: window.location.pathname,
|
||||||
math: <%- theme.minivaline.math %>,
|
lang: '<%- theme.minivaline.lang %>',
|
||||||
md: <%- theme.minivaline.md %>
|
adminEmailMd5: '<%- theme.minivaline.adminEmailMd5 %>',
|
||||||
});
|
tagMeta: <%- '["' + theme.minivaline.tagMeta.join('", "') + '"]' %>,
|
||||||
|
master: <%- '["' + theme.minivaline.master.join('", "') + '"]' %>,
|
||||||
|
friends: <%- '["' + theme.minivaline.friends.join('", "') + '"]' %>,
|
||||||
|
math: <%- theme.minivaline.math %>,
|
||||||
|
md: <%- theme.minivaline.md %>,
|
||||||
|
enableQQ: <%- theme.minivaline.enableQQ %>,
|
||||||
|
NoRecordIP: <%- theme.minivaline.NoRecordIP %>,
|
||||||
|
visitor: <%- theme.minivaline.visitor %>,
|
||||||
|
maxNest: <%- theme.minivaline.maxNest %>,
|
||||||
|
pageSize: <%- theme.minivaline.pageSize %>,
|
||||||
|
serverURLs: '<%- theme.minivaline.serverURLs %>',
|
||||||
|
emoticonUrl: <%- '["' + theme.minivaline.emoticonUrl.join('", "') + '"]' %>,
|
||||||
|
});
|
||||||
const infoEle = document.querySelector('#mvcomments .info');
|
const infoEle = document.querySelector('#mvcomments .info');
|
||||||
if (infoEle && infoEle.childNodes && infoEle.childNodes.length > 0) {
|
if (infoEle && infoEle.childNodes && infoEle.childNodes.length > 0) {
|
||||||
infoEle.childNodes.forEach(function (item) {
|
infoEle.childNodes.forEach(function (item) {
|
||||||
|
Loading…
Reference in New Issue
Block a user