|
@@ -21,13 +21,15 @@
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
|
|
{{ range $page.Params.content.user_groups }}
|
|
{{ range $page.Params.content.user_groups }}
|
|
|
|
+ {{ $query := where (where site.Pages "Section" "authors") ".Params.user_groups" "intersect" (slice .) }}
|
|
|
|
+
|
|
|
|
+ {{if $query}}
|
|
<div class="col-md-12">
|
|
<div class="col-md-12">
|
|
<h2 class="mb-4">{{ . | markdownify }}</h2>
|
|
<h2 class="mb-4">{{ . | markdownify }}</h2>
|
|
</div>
|
|
</div>
|
|
|
|
+ {{end}}
|
|
|
|
|
|
- {{ $query := where (where site.Pages "Section" "authors") ".Params.content.user_groups" "intersect" (slice .) }}
|
|
|
|
{{ range $query }}
|
|
{{ range $query }}
|
|
-
|
|
|
|
{{ $avatar := (.Resources.ByType "image").GetMatch "*avatar*" }}
|
|
{{ $avatar := (.Resources.ByType "image").GetMatch "*avatar*" }}
|
|
{{/* Get link to user's profile page. */}}
|
|
{{/* Get link to user's profile page. */}}
|
|
{{ $link := "" }}
|
|
{{ $link := "" }}
|
|
@@ -50,10 +52,9 @@
|
|
<h2>{{with $link}}<a href="{{.}}">{{end}}{{ .Params.name }}{{if $link}}</a>{{end}}</h2>
|
|
<h2>{{with $link}}<a href="{{.}}">{{end}}{{ .Params.name }}{{if $link}}</a>{{end}}</h2>
|
|
{{ with .Params.role }}<h3>{{ . | markdownify | emojify }}</h3>{{ end }}
|
|
{{ with .Params.role }}<h3>{{ . | markdownify | emojify }}</h3>{{ end }}
|
|
{{ if $show_social }}{{ partial "social_links" . }}{{ end }}
|
|
{{ if $show_social }}{{ partial "social_links" . }}{{ end }}
|
|
- {{ if and $show_interests .Params.interests }}<p class="people-interests">{{ delimit . ", " | markdownify | emojify }}</p>{{ end }}
|
|
|
|
- {{ end }}
|
|
|
|
|
|
+ {{ if and $show_interests .Params.interests }}<p class="people-interests">{{ delimit .Params.interests ", " | markdownify | emojify }}</p>{{ end }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
|
|
+ {{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
</div>
|