Skip to content
Snippets Groups Projects
Commit ebce559d authored by Arnaud Levy's avatar Arnaud Levy
Browse files

do not show absent users

parent f166f202
No related merge requests found
<ol class="persons">
{{ range (.Paginate (.Pages.ByParam "last_name")).Pages }}
{{ $person := site.GetPage (printf "/persons/%s" .Slug) }}
{{ with $person }}
<li>
<p class="name"><a href="{{ .Permalink }}">{{ partial "PrepareHTML" .Title }}</a></p>
{{- if partial "GetTextFromHTML" .Params.description_short }}
<p>{{- partial "PrepareHTML" .Params.description_short -}}</p>
{{ end -}}
</li>
{{ if .Slug }}
{{ $slug := printf "/persons/%s" .Slug }}
{{ $person := site.GetPage $slug }}
{{ if $person }}
{{ with $person }}
<li>
<p class="name"><a href="{{ .Permalink }}">{{ partial "PrepareHTML" .Title }}</a></p>
{{- if partial "GetTextFromHTML" .Params.description_short }}
<p>{{- partial "PrepareHTML" .Params.description_short -}}</p>
{{ end -}}
</li>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
</ol>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment