From bc8439adcf847584e1e9c55c1992df9a247439ec Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 21 May 2018 23:33:02 +0800 Subject: add comments --- config.js | 24 +++++++++++++++++++++++- index.html | 2 ++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/config.js b/config.js index fc43b2c0..5cf5182e 100644 --- a/config.js +++ b/config.js @@ -71,6 +71,28 @@ docute.init({ indexName: 'xmake', tags: ['en', 'zh'], url: 'http://xmake.io' - }) + }), + function valine(context) { + context.registerComponent('content:end', { + template: '

Comments

', + mounted() { + this.init() + }, + methods: { + init() { + var valine = new Valine(); + valine.init({ + el: '#valine_thread', + appId: 'RD4nYKDcOrU4XBWJRB2H4g6D-gzGzoHsz', + appKey: 'I6DiXvhBgTfKKcJ68D1zQXsr', + notify:true, + placeholder: 'Welcome to read xmake online documents!', + lang: 'en', + avatar:'mm' + }) + } + } + }) + } ] }) diff --git a/index.html b/index.html index 9d1c5b46..a4bc3660 100644 --- a/index.html +++ b/index.html @@ -12,6 +12,8 @@
+ + -- cgit v1.2.3