Skip to content

razonyang/hugo-mod-google-adsense

Repository files navigation

Hugo Google Adsense Module

Installation

Configuration

Append the following configuration into config.toml.

[[module.imports]]
path = "github.com/razonyang/hugo-mod-google-adsense"

[params.googleAdsense]
client = "ca-pub-CLIENT-ID"

Partials

You can skip this step if your theme support HugoPress.

Include the following partial inside <head> tag.

{{- partialCached "hugopress/modules/google-adsense/script" . }}