fix pjax comments bug

master
iotcat 4 years ago
parent a9b35101ad
commit 10f04c4e4c
  1. 2
      layout/_partial/footer.swig
  2. 3
      layout/_script/_comments/valine.swig

@ -4,7 +4,7 @@
<div class="copyright">
{%- if theme.valine.statistic -%}
{%- if is_post() or is_page() -%}
{%- if is_post() -%}
<span id="/{{ page.path }}" class="statistic leancloud_visitors">
<em>Visitors </em> <i class="leancloud-visitors-count">??</i>
<span class="division"> |</span>

@ -1,6 +1,6 @@
{%- if theme.valine.enable -%}
{% set valine_js_url = '//cdn.jsdelivr.net/gh/HCLonely/Valine@1.4.14/dist/Valine.min.js' %}
<script src="{{ valine_js_url }}"></script>
<script src="{{ valine_js_url }}" data-pjax></script>
<style>
/* 背景图片 */
#veditor {
@ -56,6 +56,7 @@ pjax_valine = () => {
friends: [{{ theme.valine.friendsEmailMd5 }}], //小伙伴邮箱Md5
metaPlaceholder: {"nick":"昵称/QQ号","mail":"邮箱(完全保密)"},
placeholder: "填写邮箱可以及时收到回复哦(●'◡'●)",
path: window.location.pathname,
enableQQ: true,
visitor: true,
emojiCDN: '//i0.hdslb.com/bfs/emote/',

Loading…
Cancel
Save