From c138c9c1587759de5c6a305fbf12748b3f909af4 Mon Sep 17 00:00:00 2001 From: Rael Garcia Date: Sun, 14 Jul 2019 12:41:04 +0200 Subject: [PATCH] Replace tabs by spaces in glossary-terms partials (#15408) 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. --- layouts/partials/docs/glossary-terms.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/layouts/partials/docs/glossary-terms.html b/layouts/partials/docs/glossary-terms.html index fcc5171c29d4e..b0153d49fbc72 100644 --- a/layouts/partials/docs/glossary-terms.html +++ b/layouts/partials/docs/glossary-terms.html @@ -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 -}}