blog

{{ define “blog” }}

{{ $paginator := .Paginate (where .Site.Pages.ByDate.Reverse "Type" "post") }} {{ range .Paginator.Pages }}
{{ if .Title }}

{{ .Title }}

{{ if templates.Exists "partials/summary.html" }}
{{ .Summary | safeHTML }} {{ if .Truncated }}

{{ .Site.Params.read_more_text | safeHTML }}

{{ end }}
{{ else }}
{{ .Content }}
{{ end }} {{ else }}
{{ .Content }}
{{ end }}
{{ end }}
{{ if $paginator.HasPrev }} ← Newer Posts {{ end }} {{ if $paginator.HasNext }} Older Posts → {{ end }}
{{ end }}