{{ $first := true }} {{ $lastMonth := "" }} {{ $lastYear := "" }} {{ $subject := "None" }} {{ range .Site.Pages.ByLastmod.Reverse }} {{ if and .IsPage (not .Params.skip_sitemap) (not .Params.draft) }} {{ $year := .Lastmod.Year }} {{ $month := .Lastmod.Month }} {{ if or (ne $year $lastYear) (ne $month $lastMonth) }} {{ $lastYear = $year }} {{ $lastMonth = $month }} {{ if not $first }} {{ end }} {{ $first = false }}

{{ .Lastmod.Format (i18n "log_month_format") }}

{{ end }} {{ if .GitInfo }} {{ $subject = trim (replaceRE "\\(\\#[0-9]+\\)" "" .GitInfo.Subject) " " }} {{ if not (strings.HasSuffix $subject ".") }} {{ $subject = printf "%s." $subject }} {{ end }} {{ end }} {{ end }} {{ end }} {{ if not $first }}
{{ i18n "log_when" }} {{ i18n "log_doc" }} {{ i18n "log_change" }}
{{ .Lastmod.Format (i18n "log_change_format") }} {{ .LinkTitle }} {{ $subject }}
{{ end }}