From c9c3e5f51aab748c2b325f525281125463bee2c9 Mon Sep 17 00:00:00 2001 From: Jim Vine Date: Thu, 19 Nov 2020 16:03:53 +0000 Subject: [PATCH] feat: make users' roles optional in People widget (#1971) Add `show_role` option to People widget to hide/show users' roles. --- wowchemy/layouts/partials/widgets/people.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wowchemy/layouts/partials/widgets/people.html b/wowchemy/layouts/partials/widgets/people.html index a4b8737b..586c91f8 100644 --- a/wowchemy/layouts/partials/widgets/people.html +++ b/wowchemy/layouts/partials/widgets/people.html @@ -6,6 +6,7 @@ {{ $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 }} +{{ $show_role := $page.Params.design.show_role | default true }}
{{ with $page.Title }} @@ -53,7 +54,7 @@

{{with $link}}{{end}}{{ .Title }}{{if $link}}{{end}}

{{ if and $show_organizations .Params.organizations }}{{ range .Params.organizations }}

{{ .name }}

{{ end }}{{ end }} - {{ with .Params.role }}

{{ . | markdownify | emojify }}

{{ end }} + {{ if and $show_role .Params.role }}

{{ .Params.role | markdownify | emojify }}

{{ end }} {{ if $show_social }}{{ partial "social_links" . }}{{ end }} {{ if and $show_interests .Params.interests }}

{{ delimit .Params.interests ", " | markdownify | emojify }}

{{ end }}