summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--exampleSite/config.toml4
-rw-r--r--layouts/partials/head.html4
3 files changed, 9 insertions, 1 deletions
diff --git a/README.md b/README.md
index e28ed3c..998919f 100644
--- a/README.md
+++ b/README.md
@@ -68,7 +68,7 @@ Inside the folder of your Hugo site run:
$ git submodule update --remote --merge
```
-## ⚙️ Configration
+## ⚙️ Configuration
### 🎨 Favicon
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index e93a58a..c68d082 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -32,6 +32,10 @@ paginate = 10
# googleAnalyticsTid = "UA-000000000-0"
# googleAnalyticsRoute = "https://*.*.workers.dev/"
+ # Google AdSense
+ # The AdSense code will be inserted between the head tags of your site.
+ # googleAdsense = "0000000000000000"
+
# Word counter and read time indicator in post metadata
showWordCounter = true
showReadTime = false
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 6470262..88f398f 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -41,6 +41,10 @@
<link rel="stylesheet" href="{{ "/assets/css/fuji.min.css" | relURL }}" />
{{ end }}
+{{ with .Site.Params.googleAdsense }}
+<script async data-ad-client="ca-pub-{{ . }}" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
+{{ end}}
+
{{ if .Params.player }}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.css" />
{{ end }}