feat: move noscript to additional-js

This commit is contained in:
SamirLiu
2025-05-09 13:28:01 +08:00
Unverified
parent 023d82820d
commit baee803689
2 changed files with 5 additions and 5 deletions

View File

@@ -54,4 +54,8 @@ div
if theme.busuanzi.site_uv || theme.busuanzi.site_pv || theme.busuanzi.page_pv
script(async data-pjax src= theme.asset.busuanzi || '//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js')
!= partial('includes/third-party/search/index', {}, { cache: true })
!= partial('includes/third-party/search/index', {}, { cache: true })
if (theme.google_tag_manager && theme.google_tag_manager.tag_id)
noscript
iframe(src=`${theme.google_tag_manager.domain ? theme.google_tag_manager.domain : 'https://www.googletagmanager.com'}/ns.html?id=${theme.google_tag_manager.tag_id}` height="0" width="0" style="display:none;visibility:hidden")

View File

@@ -10,10 +10,6 @@ html(lang=config.language data-theme=theme.display_mode class=htmlClassHideAside
head
include ./head.pug
body
if (theme.google_tag_manager && theme.google_tag_manager.tag_id)
noscript
iframe(src=`${theme.google_tag_manager.domain ? theme.google_tag_manager.domain : 'https://www.googletagmanager.com'}/ns.html?id=${theme.google_tag_manager.tag_id}` height="0" width="0" style="display:none;visibility:hidden")
!=partial('includes/loading/index', {}, {cache: true})
if theme.background