mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 19:50:55 +08:00
add disqus.js
This commit is contained in:
16
layout/includes/comments/disqusjs.pug
Normal file
16
layout/includes/comments/disqusjs.pug
Normal file
@@ -0,0 +1,16 @@
|
||||
if theme.disqusjs && theme.disqusjs.enable
|
||||
#disqus_thread
|
||||
link(href=('https://cdn.jsdelivr.net/npm/disqusjs@1.2/dist/disqusjs.css') rel='stylesheet')
|
||||
script(src=('https://cdn.jsdelivr.net/npm/disqusjs@1.2/dist/disqus.js'))
|
||||
script.
|
||||
var dsqjs = new DisqusJS({
|
||||
shortname: '!{theme.disqusjs.shortname}',
|
||||
siteName: "!{theme.disqusjs.siteName}",
|
||||
identifier: '!{ page.path }',
|
||||
url: '!{ page.permalink }',
|
||||
title: '!{ page.title }',
|
||||
api: '!{theme.disqusjs.api}',
|
||||
apikey: '!{theme.disqusjs.apikey}',
|
||||
admin: '',
|
||||
adminLabel: ''
|
||||
});
|
||||
Reference in New Issue
Block a user