Fix: update valine comment system version and update configuration#1983
Merged
ivan-nginx merged 2 commits intoiissnan:masterfrom Nov 3, 2017
xCss:master
Merged
Fix: update valine comment system version and update configuration#1983ivan-nginx merged 2 commits intoiissnan:masterfrom xCss:master
ivan-nginx merged 2 commits intoiissnan:masterfrom
xCss:master
Conversation
ivan-nginx
reviewed
Nov 3, 2017
|
|
||
| {% elseif theme.valine.appid and theme.valine.appkey %} | ||
| <div class="comments" id="comments"> | ||
| <div id="vcomments"></div> |
Collaborator
There was a problem hiding this comment.
No need apeear comments block on full post here?
|
是 Markdown 不是 MarkDown |
|
Error:MarkDown is Support |
|
我可以显示评论块 一切正常 就是点击评论后 没有任何反应,learnCloud也没反应,appid那些都配置好了的 没有任何报错提示~ 网站是 https://www.uavserve.online/ 救救孩子吧~ |
Contributor
Author
只能帮你到这了,加油 |
太感谢了 就是#号前面没有空格导致的 没想到几乎秒回 太感动了 |
hk-mp5a3
pushed a commit
to hk-mp5a3/hexo-theme-next
that referenced
this pull request
Oct 11, 2025
Fix: update valine comment system version and update configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number(s): N/A
What is the new behavior?
Description about this pull, in several words...
How to use?
In NexT
_config.yml:layout/_macro/post.swig:+ {% elseif theme.valine.enable and theme.valine.appid and theme.valine.appkey %} + <span class="post-comments-count"> + <span class="post-meta-divider">|</span> + <span class="post-meta-item-icon"> + <i class="fa fa-comment-o"></i> + </span> + <a href="{{ url_for(post.path) }}#comments" itemprop="discussionUrl"> + <span class="post-comments-count valine-comment-count" data-xid="{{ url_for(post.path) }}" itemprop="commentCount"></span> + </a> + </span>layout/_third-party/comments/valine.swig-{% if page.comments and theme.valine.enable and theme.valine.appid and theme.valine.appkey %} +<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script> +<script src="//unpkg.com/valine/dist/Valine.min.js"></script> +{% if theme.valine.enable and theme.valine.appid and theme.valine.appkey %} - <script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script> - <script src="//cdn.jsdelivr.net/gh/xcss/[email protected]/dist/Valine.min.js"></script> <script type="text/javascript"> + var GUEST = ['nick','mail','link']; + var guest = '{{ theme.valine.guest_info }}'; + guest = guest.split(',').filter(item=>{ + return GUEST.indexOf(item)>-1; + }); new Valine({ - av: AV, el: '#comments' , verify: {{ theme.valine.verify }}, notify: {{ theme.valine.notify }}, - app_id: '{{ theme.valine.appid }}', - app_key: '{{ theme.valine.appkey }}', - placeholder: '{{ theme.valine.placeholder }}' + appId: '{{ theme.valine.appid }}', + appKey: '{{ theme.valine.appkey }}', + placeholder: '{{ theme.valine.placeholder }}', + avatar:'{{ theme.valine.avatar }}', + guest_info:guest, + pageSize:'{{ theme.valine.pageSize }}' || 10,Does this PR introduce a breaking change?