{{ define "main" }}
{{ $image:= .Params.image }} {{ if $image }}
{{ partial "image" (dict "Src" $image "Context" .Page "Alt" .Title "Class" "w-full rounded") }}
{{ end }}

{{ .Title }}

{{ partial "toc.html" (dict "Class" "blog" "Collapsed" false "TableOfContents" .TableOfContents ) }} {{ .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 }}