Skip to content

Commit 4deadbe

Browse files
author
Alex Ball
committed
fix version numbers in hugo layouts
1 parent f998149 commit 4deadbe

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

docs/layouts/_default/list.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ <h1>{{ if .Page.Params.headerTitle }}{{ .Page.Params.headerTitle }}{{ else }}{{
4141
{{ if eq (index $urlArray 1) "stable" }}
4242
<div class="admonition warning">
4343
<p class="admonition-title">Attention</p>
44-
This page documents the stable (production) version. For testing and development with the latest features, use <a href="{{ $previewUrl }}">the preview (v2.13) version.</a>
44+
This page documents the stable (production) version. For testing and development with the latest features, use <a href="{{ $previewUrl }}">the preview (v2.15) version.</a>
4545
</div>
4646
{{ else if eq (index $urlArray 1) "preview" }}
4747
{{ else }}
4848
<div class="admonition warning">
4949
<p class="admonition-title">Attention</p>
50-
This page documents an earlier version. <a href="{{ $previewUrl }}">Go to the preview (v2.13) version.</a>
50+
This page documents an earlier version. <a href="{{ $previewUrl }}">Go to the preview (v2.15) version.</a>
5151
</div>
5252
{{ end }}
5353

docs/layouts/_default/single.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ <h1>{{ if .Page.Params.headerTitle }}{{ .Page.Params.headerTitle }}{{ else }}{{
3939
{{ if eq (index $urlArray 1) "stable" }}
4040
<div class="admonition warning">
4141
<p class="admonition-title">Attention</p>
42-
This page documents the stable (production) version. For testing and development with the latest features, use <a href="{{ $previewUrl }}">the preview (v2.13) version.</a>
42+
This page documents the stable (production) version. For testing and development with the latest features, use <a href="{{ $previewUrl }}">the preview (v2.15) version.</a>
4343
</div>
4444
{{ else if eq (index $urlArray 1) "preview" }}
4545
{{ else }}
4646
<div class="admonition warning">
4747
<p class="admonition-title">Attention</p>
48-
This page documents an earlier version. <a href="{{ $previewUrl }}">Go to the preview (v2.13) version.</a>
48+
This page documents an earlier version. <a href="{{ $previewUrl }}">Go to the preview (v2.15) version.</a>
4949
</div>
5050
{{ end }}
5151

docs/layouts/partials/detect_version.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{{ if eq $index $title }}
77
{{ $context.Scratch.Set "currentVersionMenu" $value }}
88
{{ if eq $index "preview" }}
9-
{{ $context.Scratch.Set "currentVersionTitle" "v2.13 (preview)" }}
9+
{{ $context.Scratch.Set "currentVersionTitle" "v2.15 (preview)" }}
1010
{{ else if eq $index "stable" }}
1111
{{ $context.Scratch.Set "currentVersionTitle" "v2.12 (stable)" }}
1212
{{ else }}

docs/layouts/partials/version_switcher.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{{ range $index,$value := .Site.Menus }}
88
{{ if eq $index $title }}
99
{{ if eq $index "preview" }}
10-
{{ $context.Scratch.Set "currentVersionTitle" "v2.13 (preview)" }}
10+
{{ $context.Scratch.Set "currentVersionTitle" "v2.15 (preview)" }}
1111
{{ else if eq $index "stable" }}
1212
{{ $context.Scratch.Set "currentVersionTitle" "v2.12 (stable)" }}
1313
{{ else }}
@@ -27,7 +27,7 @@
2727
</button>
2828

2929
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
30-
<a class="dropdown-item" href="/preview/"><strong>v2.13 (preview)</strong></a>
30+
<a class="dropdown-item" href="/preview/"><strong>v2.15 (preview)</strong></a>
3131
<a class="dropdown-item" href="/stable/"><strong>v2.12 (stable)</strong></a>
3232
{{ range sort $versions "Name" "desc" }}
3333
{{ if hasPrefix .Name "v"}}

docs/layouts/shortcodes/yb-version.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
* Anything else you define in the "alias" field in currentVersions.json
1212

1313
Formats:
14-
* OMIT the format entry for the 4-position version ("2.13.0.1")
15-
* short: the 3-position version ("2.13.0")
16-
* build: the full version and build ("2.13.0.1-b2")
17-
* series: the 2-position release series ("v2.13")
14+
* OMIT the format entry for the 4-position version ("2.15.0.1")
15+
* short: the 3-position version ("2.15.0")
16+
* build: the full version and build ("2.15.0.1-b11")
17+
* series: the 2-position release series ("v2.15")
1818
* displayName: the release series name and preview/stable
19-
("v2.13 (Preview)", "v2.12 (Stable)")
19+
("v2.15 (Preview)", "v2.14 (Stable)")
2020
*/}}
2121

2222
{{- $version := .Get "version" -}}

0 commit comments

Comments
 (0)