diff --git a/src/.vuepress/config/head.js b/src/.vuepress/config/head.js index c3ceef54..38940895 100644 --- a/src/.vuepress/config/head.js +++ b/src/.vuepress/config/head.js @@ -30,7 +30,7 @@ module.exports = [ ['meta', { name: 'msapplication-TileColor', content: '#156ff7' }], ['meta', { name: 'apple-mobile-web-app-title', content: 'libp2p Blog & News' }], ['meta', { name: 'application-name', content: 'libp2p Blog & News' }], - ['meta', { name: 'discourse-username', content: 'system' }], + ['meta', { name: 'discourse-username', content: 'blog' }], [ 'script', { diff --git a/src/.vuepress/theme/components/blog/Comments.vue b/src/.vuepress/theme/components/blog/Comments.vue index 7065ff9c..189248bc 100644 --- a/src/.vuepress/theme/components/blog/Comments.vue +++ b/src/.vuepress/theme/components/blog/Comments.vue @@ -29,7 +29,7 @@ export default { d.type = 'text/javascript' d.async = true d.src = window.DiscourseEmbed.discourseUrl + 'javascripts/embed.js' - document.getElementsByTagName('body')[0].appendChild(d) + (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d) }, }