{{ define "main" }}

Authors

Discover all our talented authors and their contributions

{{ $authors := slice }} {{ $authorMap := dict }} {{ range .Site.RegularPages }} {{ if .Params.author }} {{ $authorName := .Params.author }} {{ $authorSlug := .Params.author_slug | default ($authorName | urlize) }} {{ $existing := false }} {{ range $authors }} {{ if eq .name $authorName }} {{ $existing = true }} {{ end }} {{ end }} {{ if not $existing }} {{ $author := dict "name" $authorName "slug" $authorSlug "bio" .Params.author_bio "photo" .Params.author_photo "website" .Params.author_website "twitter" .Params.author_twitter "linkedin" .Params.author_linkedin "posts" (slice) }} {{ $authors = $authors | append $author }} {{ $authorMap = merge $authorMap (dict $authorName $author) }} {{ end }} {{ if $author := index $authorMap $authorName }} {{ $post := dict "title" .Title "permalink" .Permalink }} {{ $author := merge $author (dict "posts" ($author.posts | append $post)) }} {{ $authorMap = merge $authorMap (dict $authorName $author) }} {{ end }} {{ end }} {{ end }} {{ if gt (len $authors) 0 }} {{ range $authors }}
{{ if .photo }} {{ .name }} {{ else }} {{ .name }} {{ end }}
{{ .name }}
{{ if .bio }}

{{ .bio | truncate 120 }}

{{ end }}
{{ if .website }} {{ end }} {{ if .twitter }} {{ end }}
{{ if .linkedin }} {{ end }}
{{ end }} {{ else }}

No authors found

No authors have been added yet. Check back soon!

{{ end }}
{{ if gt (len $authors) 0 }}

Our Authors

Meet the talented writers and contributors who bring you insightful content across various topics. Each author brings their unique perspective and expertise to create valuable content for our readers.

{{ range $authors }}
{{ if .photo }} {{ .name }} {{ else }}
{{ end }}
{{ .name }}
{{ len .posts }} {{ if eq (len .posts) 1 }}publication{{ else }}publications{{ end }}
{{ end }}
{{ end }} {{ end }}