{{ define "main" }}

Guests of {{ .Site.Title }}

{{ with .Content }}
{{ . }}
{{- end -}}
{{ $paginator := .Paginate (where .Data.Pages.ByTitle "Type" "guest") }} {{ range $paginator.Pages }} {{- $.Scratch.Set "guest-name" .File.BaseFileName -}} {{ $.Scratch.Set "hide-guest" "false" }} {{- with .Params.guest_group -}} {{ range first 1 (where $.Data.Pages "Params.guest_group" . ).ByDate.Reverse }} {{ if ne ($.Scratch.Get "guest-name") .File.BaseFileName }} {{ $.Scratch.Set "hide-guest" "true" }} {{ end }} {{ end }} {{- end -}} {{ if ne ($.Scratch.Get "hide-guest") "true"}}
{{- if and (isset .Params "thumbnail") (ne .Params.thumbnail "") -}} {{- if (eq (slicestr .Params.thumbnail 0 4) "http") -}} {{ .Title }} {{- else -}} {{ .Title }} {{- end -}} {{- else -}} {{ .Title }} {{- end -}}

{{ .Title }} {{ with .Params.Pronouns }}({{ . }}){{ end }}

{{ .Content }}

{{ with .Params.Website }} {{ end }} {{ with .Params.Twitter }} {{ partial "social-link.html" (dict "context" . "aclass" "" "iclass" "fab fa-twitter-square fa-2x" "prefix" "https://twitter.com/" "text" "") }} {{ end }} {{ with .Params.GitHub}} {{ partial "social-link.html" (dict "context" . "aclass" "" "iclass" "fab fa-github-square fa-2x" "prefix" "https://github.com/" "text" "") }} {{ end }} {{ with .Params.LinkedIn }} {{ partial "social-link.html" (dict "context" . "aclass" "" "iclass" "fab fa-linkedin fa-2x" "prefix" "https://www.linkedin.com/in/" "text" "") }} {{ end }} {{ with .Params.Facebook }} {{ partial "social-link.html" (dict "context" . "aclass" "" "iclass" "fab fa-facebook-square fa-2x" "prefix" "https://www.facebook.com/" "text" "") }} {{ end }} {{ with .Params.Pinterest }} {{ partial "social-link.html" (dict "context" . "aclass" "" "iclass" "fab fa-pinterest-square fa-2x" "prefix" "https://www.pinterest.com/" "text" "") }} {{ end }} {{ with .Params.Instagram }} {{ partial "social-link.html" (dict "context" . "aclass" "" "iclass" "fab fa-instagram fa-2x" "prefix" "https://www.instagram.com/" "text" "") }} {{ end }} {{ with .Params.YouTube }} {{ partial "social-link.html" (dict "context" . "aclass" "" "iclass" "fab fa-youtube-square fa-2x" "prefix" "https://www.youtube.com/" "text" "") }} {{ end }} {{ with .Params.Twitch }} {{ partial "social-link.html" (dict "context" . "aclass" "" "iclass" "fab fa-twitch fa-2x" "prefix" "https://twitch.tv/" "text" "") }} {{ end }}
{{ end }} {{ end }}
{{ if gt $paginator.TotalPages 1 }}
{{ end }} {{ end }}