Skip to content
Snippets Groups Projects
Commit 2cc3137a authored by alexisben's avatar alexisben
Browse files

refacto person list-item

parent bc678546
No related merge requests found
{{/* <ol class="persons">
<ol class="persons">
{{ range (.Paginate (.Pages.ByParam "last_name")).Pages }}
{{ 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>
{{ partial "persons/list-item" $person }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
</ol>
{{ partial "commons/pagination.html" . }} */}}
{{ partial "persons/list" . }}
{{ partial "commons/pagination.html" . }}
<ol class="persons">
{{ $persons := .Pages.ByParam "last_name" }}
{{ range (.Paginate $persons).Pages }}
<li itemscope itemtype="https://schema.org/Person">
<p itemprop="name"><a href="{{ .Permalink }}">{{ partial "PrepareHTML" .Title }}</a></p>
{{- if partial "GetTextFromHTML" .Params.description_short }}
<p itemprop="jobTitle">{{- partial "PrepareHTML" .Params.description_short -}}</p>
{{ end -}}
</li>
{{/* {{ partial "persons/list-item" . }} */}}
{{ partial "persons/list-item" . }}
{{ end }}
</ol>
{{ partial "commons/pagination.html" . }}
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