Closed MOxFIVE closed 8 years ago
article.ejs
<% if (!index && theme.duoshuo && post.comments){ %>
<%- partial('post/duoshuo', {
key: post.slug,
title: post.title,
url: config.url+url_for(post.path)
}) %>
<% } %>
key: post.slug
改为 key: post.path
,这样会按页面地址生成唯一的 key, 避免重复。
post 文章多说评论互不干扰,但在 page 页面中评论都一样。