diff --git a/layouts/partials/persons/list-specific.html b/layouts/partials/persons/list-specific.html index b49058f62f240d467fa553b9284d73f3bc1e2ab0..605023a4f10c726621c7c081a1e33b090111f451 100644 --- a/layouts/partials/persons/list-specific.html +++ b/layouts/partials/persons/list-specific.html @@ -1,20 +1,14 @@ -{{/* <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" . }} diff --git a/layouts/partials/persons/list.html b/layouts/partials/persons/list.html index 01e3c841c0e436b0f4b6d8f9075d967735a41bed..77a53118ffd00784b31fcfd602c7e429608f53a1 100644 --- a/layouts/partials/persons/list.html +++ b/layouts/partials/persons/list.html @@ -1,13 +1,7 @@ <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" . }}