mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 20:15:25 +00:00
feat: only show User Group headings in People widget when multiple
Hide User Group headings in People widget if admin chooses to only show one user group.
This commit is contained in:
1 parent
0994df7177
commit
aa4ca206c8
1 file changed
+1
-1
@@ -25,7 +25,7 @@
|
||||
{{ range $page.Params.content.user_groups }}
|
||||
{{ $query := where (where site.Pages "Section" "authors") ".Params.user_groups" "intersect" (slice .) }}
|
||||
|
||||
{{if $query}}
|
||||
{{if $query | and (gt (len $page.Params.content.user_groups) 1) }}
|
||||
<div class="col-md-12">
|
||||
<h2 class="mb-4">{{ . | markdownify }}</h2>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user