{{ define "title" }} {{ if .Data.Title }} {{ .Data.Title }} - {{ .Blog.Title }} {{ else }} {{ .Blog.Title }} {{ end }} {{ end }} {{ define "main" }}
{{ with .Data.Title }}

{{ . }}

{{ end }} {{ with .Data.Description }}{{ md . }}{{ end }} {{ if (or .Data.Title .Data.Description) }}
{{ end }} {{ $blog := .Blog }} {{ range $i, $post := .Data.Posts }} {{ include "summary" $blog $post }} {{ end }} {{ if .Data.HasPrev }}

{{ string .Blog.Lang "prev" }}

{{ end }} {{ if .Data.HasNext }}

{{ string .Blog.Lang "next" }}

{{ end }}
{{ end }} {{ define "index" }} {{ template "base" . }} {{ end }}