You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/howto10/_index.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ cascade:
11
11
- notsitemap: true
12
12
- sitemap:
13
13
priority: 0.7
14
+
- banner: ""
15
+
# Empty banner added to get around bug in Hugo 0.123.0 (https://github.com/gohugoio/hugo/issues/12465) which is not fixed until 0.143.0 (https://github.com/gohugoio/hugo/releases/tag/v0.143.0)
14
16
#This document is mapped to the landing page, update the link there if renaming or moving the doc file.
Copy file name to clipboardExpand all lines: content/en/docs/howto9/_index.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,8 @@ cascade:
12
12
- notsitemap: true
13
13
- sitemap:
14
14
priority: 0.3
15
+
- banner: ""
16
+
# Empty banner added to get around bug in Hugo 0.123.0 (https://github.com/gohugoio/hugo/issues/12465) which is not fixed until 0.143.0 (https://github.com/gohugoio/hugo/releases/tag/v0.143.0)
15
17
#This document is mapped to the landing page, update the link there if renaming or moving the doc file.
Copy file name to clipboardExpand all lines: content/en/docs/refguide10/_index.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ cascade:
11
11
- notsitemap: true
12
12
- sitemap:
13
13
priority: 0.8
14
+
- banner: ""
15
+
# Empty banner added to get around bug in Hugo 0.123.0 (https://github.com/gohugoio/hugo/issues/12465) which is not fixed until 0.143.0 (https://github.com/gohugoio/hugo/releases/tag/v0.143.0)
Copy file name to clipboardExpand all lines: content/en/docs/refguide9/_index.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,8 @@ cascade:
12
12
- notsitemap: true
13
13
- sitemap:
14
14
priority: 0.4
15
+
- banner: ""
16
+
# Empty banner added to get around bug in Hugo 0.123.0 (https://github.com/gohugoio/hugo/issues/12465) which is not fixed until 0.143.0 (https://github.com/gohugoio/hugo/releases/tag/v0.143.0)
Copy file name to clipboardExpand all lines: layouts/partials/version-banner.html
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,14 @@
3
3
<!-- Check if the page has a banner: "string" set if yes, display a banner. -->
4
4
<!-- safeHTML means you can include HTML. If you need to escape double quotes, use \" -->
5
5
<!-- For example: banner: "Go <a href=\"/refguide9/moving-from-8-to-9/\">here</a>" -->
6
-
{{ with .Params.banner}}
7
-
<divclass="pageinfo pageinfo-warning">
8
-
<p>{{ . | safeHTML }}</p>
9
-
</div>
10
-
{{end}}
6
+
<!-- Extra check for empty banner added to allow empty banners in front matter to get around bug in Hugo 0.123.0 (https://github.com/gohugoio/hugo/issues/12465) which is not fixed until 0.143.0 (https://github.com/gohugoio/hugo/releases/tag/v0.143.0) -->
7
+
{{ with .Params.banner }}
8
+
{{ if ne . "" }}
9
+
<divclass="pageinfo pageinfo-warning">
10
+
<p>{{ . | safeHTML }}</p>
11
+
</div>
12
+
{{ end }}
13
+
{{ end }}
11
14
12
15
<!-- If the page has draft: true set, display the following text as a banner. -->
0 commit comments