each name in theme.comments.use case name when 'Valine' !=partial('includes/third-party/comments/valine', {}, {cache: true}) when 'Twikoo' !=partial('includes/third-party/comments/twikoo', {}, {cache: true}) when 'Waline' !=partial('includes/third-party/comments/waline', {}, {cache: true}) when 'Artalk' !=partial('includes/third-party/comments/artalk', {}, {cache: true}) + when 'Giscus' + !=partial('includes/third-party/comments/giscus', {}, {cache: true})
.comment-wrap each name in theme.comments.use div case name when 'Valine' #vcomment.vcomment when 'Twikoo' #twikoo-wrap when 'Waline' #waline-wrap when 'Artalk' #artalk-wrap + when 'Giscus' + #giscus-wrap
const ele = document.createElement('script') for (let key in config) { ele.setAttribute(key, config[key]) } document.getElementById('giscus-wrap').appendChild(ele) }