{{ define "main" }}

{{ .Title }}

    {{ $authors := compare.Conditional (reflect.IsSlice .Params.Author) .Params.Author (slice .Params.Author) }}
  • {{/* TODO: These links are broken. Disabled for now. */}} {{ range $i, $a := $authors -}} {{- if gt $i 0 }}, {{ end -}} {{/**/}} {{- $a -}} {{/**/}} {{- end }}
  • {{ $categories:= .Params.categories }} {{ if $categories }}
  • {{ range $i,$p:= $categories }} {{ . | humanize }}{{ if ne $i (sub (len $categories) 1) }} {{ "," }} {{ end }} {{ end }}
  • {{ end }}
  • {{ time.Format ":date_long" .PublishDate }}
{{ .Content }}
{{ $tags:= .Params.tags }} {{ if $tags }}
{{ T "tags" }} :
{{ end }}
{{ partial "social-share" (dict "Context" . "Class" "share-icons" "Title" (T "share") "Whatsapp" false "Telegram" false "Linkedin" false "Pinterest" false "Tumblr" false "Vk" false) }}
{{ if site.Config.Services.Disqus.Shortname }}
{{ template "_internal/disqus.html" . }}
{{ end }}
{{ $related := (where site.RegularPages "Section" "in" site.Params.mainSections) | intersect (where site.RegularPages ".Title" "!=" .Title) | union (site.RegularPages.Related . ) }} {{ $related = $related | shuffle | first 3 }} {{ with $related }}

{{ T "related_posts" }}

{{ range . }}
{{ partial "components/blog-card" . }}
{{ end }}
{{ end }}
{{ end }}