Commit c896aac3 authored by Sébastien Prud'homme's avatar Sébastien Prud'homme

Add Google AdSense

parent 172e3472
......@@ -31,6 +31,7 @@ googleAnalytics = "UA-129648198-1"
showRelatedPosts = true
# hideAuthor = true
# gcse = "012345678901234567890:abcdefghijk" # Get your code from google.com/cse. Make sure to go to "Look and Feel" and change Layout to "Full Width" and Theme to "Classic"
googleAdSense = "ca-pub-7418204534284488"
#[[Params.bigimg]]
# src = "img/triangle.jpg"
......
......@@ -32,6 +32,7 @@ pygmentsCodefencesGuessSyntax = true
showRelatedPosts = true
# hideAuthor = true
# gcse = "012345678901234567890:abcdefghijk" # Get your code from google.com/cse. Make sure to go to "Look and Feel" and change Layout to "Full Width" and Theme to "Classic"
# googleAdSense = "XXX"
#[[Params.bigimg]]
# src = "img/triangle.jpg"
......
......@@ -109,3 +109,12 @@
{{- partial "head_custom.html" . }}
{{ template "_internal/google_analytics_async.html" . }}
{{- with .Site.Params.googleAdSense }}
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "{{ . }}",
enable_page_level_ads: true
});
</script>
{{- end }}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment