Skip to content

Commit b61ccd0

Browse files
authored
Set canonical to be latest version instead of "latest" (#257)
1 parent 214eee2 commit b61ccd0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

layouts/partials/common-variables.html

+3-4
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@
2626
{{ $version_history_locations := .Params.version_history.locations }} {{/* See CONTRIBUTING.md */}}
2727
2828
29+
{{ $project_description := (index .Site.Params.project_descriptions $project) }}
30+
2931
{{ $display_toc := (index .Params "toc") | default true }}
3032
{{ $commercial_offering := (index .Params "commercial_offering") | default false }}
31-
{{ $canonical_link := (index .Params "canonical_link") | default (replace .Permalink $version "latest") }}
32-
33-
34-
{{ $project_description := (index .Site.Params.project_descriptions $project) }}
33+
{{ $canonical_link := (index .Params "canonical_link") | default (replace .Permalink $version $project_description.latest) }}
3534
3635
{{ $project_name := $project_description.project_name }} {{/* ex; "Riak KV" */}}
3736
{{ $project_name_html := $project_description.project_name_html }} {{/* ex; Riak<span class="product__title-highlight">TS</span> */}}

0 commit comments

Comments
 (0)