Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Saber2pr committed Jan 17, 2024
1 parent e09dec9 commit 9d678b1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -232478,6 +232478,7 @@ async function main() {
const gaId = core.getInput('gaId')
const gaAdId = core.getInput('gaAdId')
const gaAdsTxt = core.getInput('gaAdsTxt')
const gaAdsSlotHtml = core.getInput('gaAdsSlotHtml')
const iconUrl = core.getInput('iconUrl')
const backgroundImage = core.getInput('backgroundImage')

Expand Down Expand Up @@ -232675,6 +232676,7 @@ async function main() {
window.__title = "${title}"
window.__backgroundImage = ""
window.__basename = '${basename}'
window.__adsSlotHtml = '${gaAdsSlotHtml}'
window.__expandDirs = ${JSON.stringify(expandDirs)}
window.__wiki = \`${wikiMd5}\`
window.__blog = \`${encodeURIComponent(content)}\`
Expand Down Expand Up @@ -232704,7 +232706,11 @@ async function main() {
}
if(gaAdId) {
outHtml = outHtml.replace('<head>', `<head>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${gaAdId}" crossorigin="anonymous"></script>`)
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${gaAdId}" crossorigin="anonymous"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
`)
}

if(iconUrl) {
Expand Down

0 comments on commit 9d678b1

Please sign in to comment.