layouts/news/security-grid.html
{{ .Params.description }}
{{ $pages := (where .Site.Pages "Section" .Section) }} {{ $pages = sort $pages ".Params.publishdate" "desc" }} {{ $parent := .Page }} {{ $parentDir := (path.Dir .Page.File.Dir) }}
| {{ i18n "security_disclosure" }} | {{ i18n "security_date" }} | {{ i18n "security_affected_releases" }} | {{ i18n "security_impact_score" }} | {{ i18n "security_related" }} |
|---|---|---|---|---|
| {{ range $pages }} {{ $pageLocation := (path.Dir (path.Dir .File.Dir)) }} {{ if and (eq $parentDir $pageLocation) (not .Params.draft) }} | {{ .LinkTitle }} | {{ .PublishDate.Format (i18n "page_publish_date_format") -}} | {{ range .Params.releases }} {{ trim . " " }} | |
| {{ end }} | {{ if .Params.cvss }} {{ .Params.cvss }} {{ end }} | {{ trim .Description "." -}} | ||
| {{ end }} {{ end }} |
{{ partial "posts_navigation.html" . }}