From 398ca6e2f300cce5c7bf7fa69fde42b4b592f5a4 Mon Sep 17 00:00:00 2001 From: Jiawei Huang Date: Sun, 14 Jun 2020 14:05:14 -0700 Subject: Add preliminary Google AdSense support When `googleAdsense` is set in `config.toml`, the AdSense code snippet will be inserted between the `` tags of your site. Only Google AdSense Auto ads is supported at the moment. --- layouts/partials/head.html | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'layouts/partials') diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 0603c4d..b953cd8 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -41,6 +41,15 @@ {{ end }} +{{ if .Site.Params.googleAdsense }} + + +{{ end}} {{ if .Params.playerURL }} {{ end }} -- cgit v1.2.3