fix unexpected line breaks for localized glossary tooltips #15390 (#15920)

pull/15936/head
Thibaut Tauveron 2019-08-19 02:58:04 +02:00 committed by Kubernetes Prow Robot
parent 06ddf5210c
commit bfe83d284c
1 changed files with 1 additions and 3 deletions

View File

@ -3,9 +3,7 @@
{{ $pages := $glossaryBundle.Resources.ByType "page" }}
{{- range site.Params.language_alternatives -}}
{{- with (where $glossaryBundle.Translations ".Lang" . ) -}}
{{ $p := (index . 0) }}
{{ $pages = $pages | lang.Merge ($p.Resources.ByType "page") }}
{{ end }}
{{ $p := (index . 0) }}{{ $pages = $pages | lang.Merge ($p.Resources.ByType "page") }}{{ end }}
{{ end }}
{{- $.Scratch.Set "glossary_items" $pages -}}
{{- else -}}