{{ define "title" }} {{ with .Blog.BlogStats.Title }}{{ . }} - {{ end }}{{ .Blog.Title }} {{ end }} {{ define "main" }}
{{ with .Blog.BlogStats.Title }}

{{ . }}

{{ end }} {{ with .Blog.BlogStats.Description }}{{ md . }}{{ end }} {{ $months := .Data.months }} {{ range $year := .Data.years }} {{ range $month := (index $months $year.Name) }} {{ end }} {{ end }}
{{ string .Blog.Lang "year" }} {{ string .Blog.Lang "posts" }} ~{{ string .Blog.Lang "chars" }} ~{{ string .Blog.Lang "words" }} ~{{ string .Blog.Lang "wordsperpost" }}
{{ $year.Name }} {{ $year.Posts }} {{ $year.Chars }} {{ $year.Words }} {{ $year.WordsPerPost }}
{{ $year.Name }}-{{ $month.Name }} {{ $month.Posts }} {{ $month.Chars }} {{ $month.Words }} {{ $month.WordsPerPost }}
{{ string .Blog.Lang "withoutdate" }} {{ .Data.withoutdate.Posts }} {{ .Data.withoutdate.Chars }} {{ .Data.withoutdate.Words }} {{ .Data.withoutdate.WordsPerPost }}
{{ string .Blog.Lang "total" }} {{ .Data.total.Posts }} {{ .Data.total.Chars }} {{ .Data.total.Words }} {{ .Data.total.WordsPerPost }}
{{ end }} {{ define "blogstats" }} {{ template "base" . }} {{ end }}