docs: fix analytics and sitemap

Fixes the Google Analytics tracking ID and
restores the production sitemap.

Signed-off-by: Tim Jones <tim.jones@siderolabs.com>
This commit is contained in:
Tim Jones 2022-04-23 22:43:28 +02:00
parent 55ff876dc6
commit 7ad27751cb
No known key found for this signature in database
GPG Key ID: A2A702DD5B689F45
3 changed files with 3 additions and 9 deletions

View File

@ -1,13 +1,7 @@
[build]
command = "hugo --source website --gc --minify"
publish = "website/public"
[build.environment]
BUILD_COMMAND = "hugo --source website --gc --minify"
HUGO_VERSION = "0.95.0"
NODE_VERSION = "16.13.2"
[context.production]
command = "$BUILD_COMMAND --baseURL $URL"
[context.deploy-preview]
command = "$BUILD_COMMAND --baseURL $DEPLOY_PRIME_URL"

View File

@ -56,7 +56,7 @@ resampleFilter = "CatmullRom"
[services]
[services.googleAnalytics]
# Comment out the next line to disable GA tracking. Also disables the feature described in [params.ui.feedback].
id = "UA-141692582-2"
id = "G-F7TDNSY952"
[markup]
[markup.goldmark]

View File

@ -12,7 +12,7 @@
{{ if ne $latest_version $current_version }}
{{ $latest_doc := partial "doc_latest_version.html" . }}
{{ if ne $latest_doc $latest_version }}
<link rel="canonical" href="{{ $latest_doc | safeURL | absURL }}" />
<link rel="canonical" href="https://www.talos.dev{{ $latest_doc | safeURL }}" />
{{ end }}
{{ end }}
{{ end }}