mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
6 lines
363 B
HTML
6 lines
363 B
HTML
|
{{ $adsenseEnabled := (and .Site.Params "adsense" (ne .Params.disableAdsense true) ) }}
|
||
|
{{ $adsenseAllowedOnPage := (ne .Kind "404" )}}
|
||
|
|
||
|
{{- if (and $adsenseEnabled $adsenseAllowedOnPage) }}
|
||
|
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client={{- .Site.Params.adsense.clientID -}}" crossorigin="anonymous"></script>
|
||
|
{{- end }}
|