{{ 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 }}
{{ $currentTags := .Params.tags }} {{ $posts := where .Site.RegularPages "Type" "posts" }} {{ $posts = where $posts ".Params.unlisted" "!=" "true" }} {{ $count := 0 }} {{ range $posts }} {{ if and (lt $count 4) (ne .Permalink $.Permalink) (intersect $currentTags .Params.tags) }} {{ partial "article-list/default" . }} {{ $count = add $count 1 }} {{ end }} {{ end }}
{{ end }}
{{ end }}