octopress muut使用Muut为Octopress添加评论功能
octopress-muut 将 Muut 用于 Octopress 帖子和页面评论。首先,设置并安装插件,下载此存储库中的文件。然后,将 .rb
和 .html
文件复制到 Octopress 实例中的相应目录中。可以使用以下命令来实现:
$ cd octopress-muut
$ find . ( -name '*.rb' -o -name '*.html' ) -exec cp {} /path/to/octopress/{} ;
接下来,在 Octopress 安装中的文件 source/_includes/head.html
里将以下代码添加到底部:
{% include custom/muut_head.html %}
为了让评论显示在每篇博客文章的底部,请编辑 source/_layouts/post.html
文件,在 结束标记之后,立即添加:
{% if site.mu %}
这样就能成功集成 Muut 评论功能到 Octopress 中。
下载地址
用户评论