Skip to content

Commit 7ad2775

Browse files
committed
docs: fix analytics and sitemap
Fixes the Google Analytics tracking ID and restores the production sitemap. Signed-off-by: Tim Jones <[email protected]>
1 parent 55ff876 commit 7ad2775

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

netlify.toml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
[build]
2+
command = "hugo --source website --gc --minify"
23
publish = "website/public"
34

45
[build.environment]
5-
BUILD_COMMAND = "hugo --source website --gc --minify"
66
HUGO_VERSION = "0.95.0"
77
NODE_VERSION = "16.13.2"
8-
9-
[context.production]
10-
command = "$BUILD_COMMAND --baseURL $URL"
11-
12-
[context.deploy-preview]
13-
command = "$BUILD_COMMAND --baseURL $DEPLOY_PRIME_URL"

website/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ resampleFilter = "CatmullRom"
5656
[services]
5757
[services.googleAnalytics]
5858
# Comment out the next line to disable GA tracking. Also disables the feature described in [params.ui.feedback].
59-
id = "UA-141692582-2"
59+
id = "G-F7TDNSY952"
6060

6161
[markup]
6262
[markup.goldmark]

website/layouts/partials/hooks/head-end.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{{ if ne $latest_version $current_version }}
1313
{{ $latest_doc := partial "doc_latest_version.html" . }}
1414
{{ if ne $latest_doc $latest_version }}
15-
<link rel="canonical" href="{{ $latest_doc | safeURL | absURL }}" />
15+
<link rel="canonical" href="https://www.talos.dev{{ $latest_doc | safeURL }}" />
1616
{{ end }}
1717
{{ end }}
1818
{{ end }}

0 commit comments

Comments
 (0)