{{ define "main" }}
{{ if (and .IsPage (eq .FirstSection "posts"))}} {{ with .CurrentSection }} {{ end }} {{ end }}
{{ .Content }}
{{ if (and .IsPage (eq .FirstSection "posts"))}} {{ end }}
{{ end }}