mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Include carbon script on static templates
This commit is contained in:
parent
088115d823
commit
d1a330aac9
2 changed files with 4 additions and 1 deletions
|
|
@ -71,7 +71,9 @@ const cleanNuxtLayout = ( layout ) => {
|
||||||
})
|
})
|
||||||
|
|
||||||
// Strip out existing scripts
|
// Strip out existing scripts
|
||||||
Array.from(document.querySelectorAll('script[src*=".js"]')).forEach( domNode => {
|
const scriptSelector = 'script[src*=".js"]:not(.include-on-static)'
|
||||||
|
|
||||||
|
Array.from(document.querySelectorAll( scriptSelector )).forEach( domNode => {
|
||||||
domNode.remove()
|
domNode.remove()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -123,6 +123,7 @@ export default {
|
||||||
async: true,
|
async: true,
|
||||||
type: 'text/javascript',
|
type: 'text/javascript',
|
||||||
id: '_carbonads_js',
|
id: '_carbonads_js',
|
||||||
|
class: 'include-on-static',
|
||||||
body: true
|
body: true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue