Skip to content

Commit

Permalink
Merge commit 'ce857e005246025a90ec4ddd933cee7cfab4488a' into braskin/…
Browse files Browse the repository at this point in the history
…hugo_site
  • Loading branch information
ChrisChinchilla committed Sep 15, 2020
2 parents 957fb39 + ce857e0 commit 6d88723
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/themes/docs-theme/layouts/glossary.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h1>{{ .Title }}</h1>
<span class="tag-option"><a id="deselect-all-tags" href="javascript:void(0)">{{ T "layouts_docs_glossary_deselect_all" }}</a></span>
</div>
<p>{{ T "layouts_docs_glossary_click_details_before" }} <a href="javascript:void(0)" class="no-underline">[+]</a> {{ T "layouts_docs_glossary_click_details_after" }}</p>
{{ partial "docs/glossary-terms.html" . }}
{{ partial "glossary-terms.html" . }}
{{ $glossary_items := $.Scratch.Get "glossary_items" }}
{{ with $glossary_items }}
{{ $glossary_terms := sort . "Title" "asc" }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ $glossaryBundle := site.GetPage "page" "docs/glossary" }}
{{ $glossaryBundle := site.GetPage "page" "glossary" }}
{{- if $glossaryBundle -}}
{{ $pages := $glossaryBundle.Resources.ByType "page" }}
{{- range site.Params.language_alternatives -}}
Expand All @@ -9,5 +9,5 @@
{{ end }}
{{- $.Scratch.Set "glossary_items" $pages -}}
{{- else -}}
{{- errorf "[%s] Glossary Bundle not found for language. Create at least an index.md file inside docs/glossary" site.Language.Lang -}}
{{- errorf "[%s] Glossary Bundle not found for language. Create at least an index.md file inside glossary" site.Language.Lang -}}
{{- end -}}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- $id := .Get "term_id" -}}
{{- $text := .Get "text" -}}
{{- partial "docs/glossary-terms.html" $.Page -}}
{{- partial "glossary-terms.html" $.Page -}}
{{- $glossary_items := $.Page.Scratch.Get "glossary_items" -}}
{{- if not $glossary_items -}}
{{- errorf "[%s] No glossary items found" site.Language.Lang -}}
Expand Down

0 comments on commit 6d88723

Please sign in to comment.