{{ define "main" }} {{ $authorName := .Params.author }} {{ $authorSlug := .Params.author_slug }} {{ $authorPosts := where .Site.RegularPages "Params.author" $authorName }}

Articles by {{ $authorName }}

Tous les articles écrits par {{ $authorName }}

{{ $paginationLimit := 10 }} {{ if .Site.Params.paginationLimit }}{{ $paginationLimit = .Site.Params.paginationLimit }}{{ end }} {{ $paginator := .Paginate $authorPosts $paginationLimit }} {{ if gt (len $authorPosts) 0 }} {{ range $paginator.Pages }}
{{ if .Params.categories }} {{ range $index, $category := .Params.categories }} {{ if $index }}, {{ end }} {{ if and (eq (printf "%T" $category) "string") }} {{ $category }} {{ else if and (eq (printf "%T" $category) "map") }} {{ if $category.name }} {{ $category.name }} {{ end }} {{ end }} {{ end }} {{ end }}
{{ .Date.Format "02/07/2006" }}

{{ .Title }}

{{ if .Params.excerpt }}

{{ .Params.excerpt }}

{{ else if .Summary }}

{{ .Summary }}

{{ else }}

{{ truncate 200 .Content }}

{{ end }}
{{ end }} {{ partial "pagination.html" (dict "Paginator" .Paginator "Page" .) }} {{ else }}

Aucun article trouvé

Aucun article n'a été trouvé pour cet auteur.

{{ end }}
{{ end }}