layouts/shortcodes/change_log.html
{{ $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 }}
| {{ i18n "log_when" }} | {{ i18n "log_doc" }} | {{ i18n "log_change" }} |
|---|---|---|
| {{ end }} {{ if .GitInfo }} {{ $subject = trim (replaceRE "\(\#[0-9]+\)" "" .GitInfo.Subject) " " }} {{ if not (strings.HasSuffix $subject ".") }} {{ $subject = printf "%s." $subject }} {{ end }} {{ end }} | {{ .Lastmod.Format (i18n "log_change_format") }} | {{ .LinkTitle }} |
| {{ end }} {{ end }} {{ if not $first }} | ||
| {{ end }} |