diff --git a/_config.yml b/_config.yml index 920a2b2..a7b02f5 100644 --- a/_config.yml +++ b/_config.yml @@ -257,6 +257,13 @@ disqus: # perPage: 10 # How much comment/page # labels: 'Vssue' +# waline comment system. https://waline.js.org/ +# waline: + # enable: true + # serverURL: '' + # lang: zh-CN + # avatar: '' + # Footer Settings # --------------- since: 2013 diff --git a/layout/includes/comments/index.pug b/layout/includes/comments/index.pug index aab6654..98f8bb5 100644 --- a/layout/includes/comments/index.pug +++ b/layout/includes/comments/index.pug @@ -9,4 +9,6 @@ else if theme.gitalk && theme.gitalk.enable else if theme.valine && theme.valine.enable include ./valine.pug else if theme.vssue && theme.vssue.enable - include ./vssue.pug \ No newline at end of file + include ./vssue.pug +else if theme.waline && theme.waline.enable + include ./waline.pug diff --git a/layout/includes/comments/waline.pug b/layout/includes/comments/waline.pug new file mode 100644 index 0000000..07d544d --- /dev/null +++ b/layout/includes/comments/waline.pug @@ -0,0 +1,10 @@ +if theme.waline && theme.waline.enable + #waline + script(src='https://cdn.jsdelivr.net/npm/@waline/client') + script. + Waline({ + el:'#waline', + serverURL: '#{theme.waline.serverURL}', + lang: '#{theme.waline.lang}' + avatar: '#{theme.waline.avatar}' + })