{{ define "main" }}

{{ .Title }}

{{ .Summary }}

{{- $contents := split .Content `
` -}} {{ index $contents 0 | safeHTML }}
{{ if not (in .Params.categories "About") }} {{ if not (in .Params.categories "") }} {{ partial "post-footer" }} {{ end }} {{ end }}
{{ $commentsfile := printf "comments.%s.md" .Lang }} {{ with .Resources.GetMatch $commentsfile }}

{{ i18n "commentstitle" | default "Comments"}}

{{ i18n "commentsdescription" | default "To make a comment, please send an e-mail to solar (at) lowtechmagazine (dot) com. Your e-mail address is not used for other purposes, and will be deleted after the comment is published. If you don’t want your real name to be published, sign the e-mail with the name you want to appear."}}

{{ i18n "commentstitle" | default "Reactions"}}
{{ .Content }}
{{ end }}
{{ index $contents 1 | safeHTML }}
{{$tags := (.GetTerms "tags")}} {{ if $tags }}
{{ $allposts := where .Site.RegularPages "Type" "in" "posts" }} {{ $notunlisted := where site.RegularPages ".Params.unlisted" "!=" "true" }} {{ $posts := $allposts | intersect $notunlisted }} {{ $related := $posts.RelatedIndices . "tags" "lang" | first 4}} {{ range $related }} {{ if isset .Params ("categories") }} {{ partial "article-list/default" . }} {{ end }} {{ end }}
{{ end }}
{{ end }}