Skip to content

Commit

Permalink
Replace tabs by spaces in glossary-terms partials (#15408)
Browse files Browse the repository at this point in the history
Using tabs in this partials seems to cause Hugo to parse the partial
as a code block instead of rendering the HTML code.

Solves #14792 rendering issues.
  • Loading branch information
Rael Garcia authored and k8s-ci-robot committed Jul 14, 2019
1 parent 4a1203a commit c138c9c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions layouts/partials/docs/glossary-terms.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{{ $glossaryBundle := site.GetPage "page" "docs/reference/glossary" }}
{{- if $glossaryBundle -}}
{{ $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 }}
{{ end }}
{{- $.Scratch.Set "glossary_items" $pages -}}
{{ $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 }}
{{ end }}
{{- $.Scratch.Set "glossary_items" $pages -}}
{{- else -}}
{{- errorf "[%s] Glossary Bundle not found for language. Create at least an index.md file inside docs/reference/glossary" site.Language.Lang -}}
{{- end -}}

0 comments on commit c138c9c

Please sign in to comment.