mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-14 04:15:40 +00:00
`site.GoogleAnalytics` variable is deprecated since Hugo ~v0.133 (a warning was shown since v0.120.0+) and Hugo now introduced a breaking change without any backwards compatibility causing all existing sites to break. Theis Hugo variable would need to be changed to `site.Config.Services.GoogleAnalytics.ID`, however that then breaks compatibility with all the sites on earlier Hugo versions. Thus, omit fetching this configuration variable since it should be set via the dedicated Analytics sections in `params.yaml` anyway.
blox-seo
A Hugo plugin for Search Engine Optimisation (SEO), site verification, and analytics.
Install
The blox-bootstrap module will automatically include the SEO module in your site so you don't have to.
Otherwise, if you are not using the blox-bootstrap module, you can get SEO features for your Hugo site by following the guide below:
-
Add the module to your
config/_default/config.yaml:module: imports: - path: github.com/HugoBlox/hugo-blox-builder/modules/blox-seo -
If you're not using the
blox-bootstrapmodule, load the SEO module in your site's<head>with:{{ partial "blox_seo" . }}