Back to Istio Io

Change Log

layouts/shortcodes/change_log.html

latest968 B
Original Source

{{ $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") }}

{{ 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 }}