mirror of https://github.com/istio/istio.io.git
Fix local build break (#6256)
This commit is contained in:
parent
3415ae991e
commit
3aa34e29e3
|
@ -1,6 +1,7 @@
|
||||||
{{ $first := true }}
|
{{ $first := true }}
|
||||||
{{ $lastMonth := "" }}
|
{{ $lastMonth := "" }}
|
||||||
{{ $lastYear := "" }}
|
{{ $lastYear := "" }}
|
||||||
|
{{ $subject := "None" }}
|
||||||
{{ range .Site.Pages.ByLastmod.Reverse }}
|
{{ range .Site.Pages.ByLastmod.Reverse }}
|
||||||
|
|
||||||
{{ if and .IsPage (not .Params.skip_sitemap) (not .Params.draft) }}
|
{{ if and .IsPage (not .Params.skip_sitemap) (not .Params.draft) }}
|
||||||
|
@ -29,10 +30,13 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $subject := trim (replaceRE "\\(\\#[0-9]+\\)" "" .GitInfo.Subject) " " }}
|
{{ if .GitInfo }}
|
||||||
|
{{ $subject = trim (replaceRE "\\(\\#[0-9]+\\)" "" .GitInfo.Subject) " " }}
|
||||||
{{ if not (strings.HasSuffix $subject ".") }}
|
{{ if not (strings.HasSuffix $subject ".") }}
|
||||||
{{ $subject = printf "%s." $subject }}
|
{{ $subject = printf "%s." $subject }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ .Lastmod.Format (i18n "log_change_format") }}</td>
|
<td>{{ .Lastmod.Format (i18n "log_change_format") }}</td>
|
||||||
|
|
Loading…
Reference in New Issue