feat: option to list each person's organization in People widget

To use, add `show_organizations: true` to People widget front matter

Closes #1941
See #1953
This commit is contained in:
Tom Vercauteren authored and GitHub committed 2020-11-18 20:43:02 +00:00
1 parent 9852d63bc4
commit 97606bf9c6
1 file changed
+1
@@ -51,6 +51,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 }}
{{ 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 }}