diff options
Diffstat (limited to 'config.js')
| -rw-r--r-- | config.js | 24 |
1 files changed, 23 insertions, 1 deletions
@@ -71,6 +71,28 @@ docute.init({ indexName: 'xmake', tags: ['en', 'zh'], url: 'http://xmake.io' - }) + }), + function valine(context) { + context.registerComponent('content:end', { + template: '<div class="markdown-body content"><h2 id="comments">Comments</h2><div id="valine_thread"></div></div>', + 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' + }) + } + } + }) + } ] }) |
