From 94298ea2b3395b36907592c29807b571b4a8d0b0 Mon Sep 17 00:00:00 2001 From: Jonathan Ling <jonathan.ling@hoteleffectiveness.com> Date: Mon, 23 Mar 2020 22:09:12 -0400 Subject: [PATCH] Update theme with google code. --- layouts/partials/comments.html | 2 ++ layouts/partials/google/adsense.html | 1 + layouts/partials/head.html | 1 + 3 files changed, 4 insertions(+) create mode 100644 layouts/partials/google/adsense.html diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index 64f5a64..2818a17 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -6,3 +6,5 @@ Hugo directory and insert: or whatever comment engine you want -> https://gohugo.io/content-management/comments/#readout --> +{{ template "_internal/disqus.html" . }} + diff --git a/layouts/partials/google/adsense.html b/layouts/partials/google/adsense.html new file mode 100644 index 0000000..e7aada4 --- /dev/null +++ b/layouts/partials/google/adsense.html @@ -0,0 +1 @@ +<script data-ad-client="ca-pub-9891710027669325" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 793405b..b384d1b 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -6,6 +6,7 @@ <link rel="canonical" href="{{ .Permalink }}" /> {{ template "_internal/google_analytics.html" . }} +{{ partial "google/adsense.html" . }} <!-- Theme CSS --> <link rel="stylesheet" href="{{ "assets/style.css" | absURL }}">