Skip to content

Commit

Permalink
fix: canonical links in docs site
Browse files Browse the repository at this point in the history
Fixes canonical link for the documentation website.

Signed-off-by: Tim Jones <[email protected]>
  • Loading branch information
TimJones committed Sep 6, 2022
1 parent 757706c commit 5527432
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build]
command = "cd website && hugo --gc --minify --baseURL $DEPLOY_PRIME_URL"
command = "hugo --source website --gc --minify"
publish = "website/public"

[build.environment]
Expand Down
4 changes: 2 additions & 2 deletions website/layouts/partials/hooks/head-end.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,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.sidero.dev{{ $latest_doc | absURL }}" />
{{ end }}
{{ end }}
{{ end }}
{{ end }}

0 comments on commit 5527432

Please sign in to comment.