{{ define "title" }} {{ .Page.Title | plainify }} | {{ .Site.Title }} {{ end }} {{ define "main-class" }}--section layouts-blog-section{{ end }} {{ define "main-type" }}{{ .Params.mainType }}{{ end }} {{ define "footer-scripts" }} {{ end }} {{ define "main-header" }}

{{ .Title | safeHTML }} {{ if eq .Type "blog" }} {{ with .GetPage "blog/posts" }} {{ range .AlternativeOutputFormats -}} RSS icon {{ end }} {{ end }} {{ else }} {{ range .AlternativeOutputFormats -}} RSS icon {{ end }} {{ end }}

{{ .Content }}
{{ end }} {{ define "main-body" }} {{ if eq .Type "blog" }} {{ with .GetPage "blog/posts" }} {{ partial "items-grid.html" . }} {{ end }} {{ else }} {{ partial "items-grid.html" . }} {{ end }} {{ end }}