From 34e34527c93cb637bbc802dd62bfcf5a63294c6f Mon Sep 17 00:00:00 2001 From: Dave Huseby Date: Tue, 23 Apr 2024 21:01:00 -0600 Subject: [PATCH] try to fix comments again Signed-off-by: Dave Huseby --- src/.vuepress/config/head.js | 2 +- src/.vuepress/theme/components/blog/Comments.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) }, }