Parcourir la source

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
Tom Vercauteren il y a 4 ans
Parent
commit
97606bf9c6
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      wowchemy/layouts/partials/widgets/people.html

+ 1 - 0
wowchemy/layouts/partials/widgets/people.html

@@ -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 }}