walineJson

作者头像 作者头像

泽泽社长 / 04-19 / 0 阅读 / 编辑

walineJson

typecho的waline评论插件

下载

教程

按照Waline官方教程引入Waline即可,其中配置js改成如下代码

<script>
    Waline({
        el: '#waline',
        serverURL: '你的域名/index.php/api/',
        path:'<?php $this->cid() ?>',
        dark:'body[class="uk-light"]',
        avatar: 'retro',
        copyright: false,
        math:true,
        highlight: 'github-dark-dimmed',
        login:'disable'

    });
</script>

如果你开了伪静态则可以去掉代码中的index.php

开源地址

https://github.com/zmoyi/WalineJson