mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 18:15:31 +00:00
fix: add definition for $show_organizations to People widget
Commit97606bfadded support for show_organizations in the people widget. The original author forgot to add the definition of this variable at top of the widget, leading to hugo not being able to build the site because the variable was not initialized. This commit adds a definition for show_organizations at the top of the widget and fixes the build error. Fix97606bf
This commit is contained in:
1 parent
97606bf9c6
commit
fe49f96267
1 file changed
+2
-1
@@ -5,6 +5,7 @@
|
||||
{{ $page := .page }}
|
||||
{{ $show_social := $page.Params.design.show_social | default false }}
|
||||
{{ $show_interests := $page.Params.design.show_interests | default true }}
|
||||
{{ $show_organizations := $page.Params.design.show_organizations | default false }}
|
||||
|
||||
<div class="row justify-content-center people-widget">
|
||||
{{ with $page.Title }}
|
||||
@@ -51,7 +52,7 @@
|
||||
|
||||
<div class="portrait-title">
|
||||
<h2>{{with $link}}<a href="{{.}}">{{end}}{{ .Title }}{{if $link}}</a>{{end}}</h2>
|
||||
{{ if and $show_organizations .Params.organizations }}{{range .Params.organizations }}<h3><em>{{ .name | markdownify | emojify }}</em></h3>{{ end }}{{ end }}
|
||||
{{ if and $show_organizations .Params.organizations }}{{ range .Params.organizations }}<h3>{{ .name }}</h3>{{ end }}{{ end }}
|
||||
{{ with .Params.role }}<h3>{{ . | markdownify | emojify }}</h3>{{ end }}
|
||||
{{ if $show_social }}{{ partial "social_links" . }}{{ end }}
|
||||
{{ if and $show_interests .Params.interests }}<p class="people-interests">{{ delimit .Params.interests ", " | markdownify | emojify }}</p>{{ end }}
|
||||
|
||||
Reference in new issue
Block a user