if theme.duoshuo .ds-thread(data-thread-key=page.path, data-title=page.title, data-url=page.permalink, data-author-key='1') if theme.disqus #disqus_thread
if theme.youyan <div id="uyan_frame"> script(type='text/javascript' src='//v2.uyan.cc/code/uyan.js?uid=#{theme.youyan}') </div> if theme.yungentie <div id="cloud-tie-wrapper" class="cloud-tie-wrapper"></div> script(type="text/javascript"). var cloudTieConfig = { url: document.location.href, sourceId: "", productKey: "cb283a9f048249cf8c427834214ebaaf", target: "cloud-tie-wrapper" }; script(type='text/javascript' src='//img1.cache.netease.com/f2e/tie/yun/sdk/loader.js')
2. 修改文章内容页评论参与数
1 2 3 4 5 6 7 8 9 10 11
if theme.duoshuo a.ds-thread-count(data-thread-key=page.path, href=url_for(page.path) + '#comments') if theme.disqus a.disqus-comment-count(data-disqus-identifier=page.path, href=url_for(page.path) + '#disqus_thread') if theme.yungentie <div class="ds-thread-count"> <a class="cloud-tie-join-count" href="javascript:void(0);" > <span class="join-count" data-url=page.path >0</span> <span class="join-text">评论</span> </a> </div>
3. 修改page.jade
如果你的博客在关于我页面也存在留言板,可以修改相应的单页模板。
1 2 3
if page.comments #comments include _partial/comments