summaryrefslogtreecommitdiffstats
path: root/layouts/partials/head.html
diff options
context:
space:
mode:
authorDSRKafuU2020-06-15 14:26:00 +0800
committerGitHub2020-06-15 14:26:00 +0800
commita27de2dabacb3b3ecddcefb90b893cc9c99fcfcf (patch)
tree8784324472b317dd4204f6620583add19cdf1956 /layouts/partials/head.html
parent398ca6e2f300cce5c7bf7fa69fde42b4b592f5a4 (diff)
parentd0569100c68fc2dd9c7fae4d91915fd49da8d71f (diff)
downloadhugo-theme-fuji-a27de2dabacb3b3ecddcefb90b893cc9c99fcfcf.tar.gz
hugo-theme-fuji-a27de2dabacb3b3ecddcefb90b893cc9c99fcfcf.tar.bz2
hugo-theme-fuji-a27de2dabacb3b3ecddcefb90b893cc9c99fcfcf.zip
Merge branch 'dev' into google-adsense
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html13
1 files changed, 4 insertions, 9 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index b953cd8..88f398f 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -41,16 +41,11 @@
<link rel="stylesheet" href="{{ "/assets/css/fuji.min.css" | relURL }}" />
{{ end }}
-{{ if .Site.Params.googleAdsense }}
-<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
-<script>
- (adsbygoogle = window.adsbygoogle || []).push({
- enable_page_level_ads: true,
- google_ad_client: "ca-pub-{{.Site.Params.googleAdsense}}",
- });
-</script>
+{{ with .Site.Params.googleAdsense }}
+<script async data-ad-client="ca-pub-{{ . }}" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
{{ end}}
-{{ if .Params.playerURL }}
+
+{{ if .Params.player }}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.css" />
{{ end }}
{{ if .Site.Params.useDisqusJS }}