istio.io/layouts/news/release-grid.html

36 lines
1.3 KiB
HTML

{{ define "main" }}
<main class="primary blog-content">
<div>
<article>
<h1>{{ .Params.title }}</h1>
<p class="blog-description">{{ .Params.description }}</p>
<div class="release-grid">
{{ $pages := (where .Site.Pages "Section" .Section) }}
{{ $pages = sort $pages ".Params.publishdate" "desc" }}
{{ $parent := .Page }}
{{ $parentDir := (path.Dir .Page.File.Dir) }}
<table>
<tbody>
{{ range $pages }}
{{ $pageLocation := (path.Dir (path.Dir .File.Dir)) }}
{{ if eq $parentDir $pageLocation }}
<tr>
<td>
<a href="{{ .Permalink }}">
Istio {{ .LinkTitle }}
</a>
</td>
<td>{{ .PublishDate.Format (i18n "page_publish_date_format") -}}</td>
</tr>
{{ end }}
{{ end }}
</tbody>
</table>
</div>
</article>
</div>
</main>
{{ end }}