Skip to content

Commit

Permalink
Add layout to hide outdated releases
Browse files Browse the repository at this point in the history
  • Loading branch information
dipesh-rawat committed Sep 2, 2023
1 parent 41b9aa8 commit 3793f5d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions content/en/releases/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ linktitle: Release History
title: Releases
type: docs
layout: release-info
notoc: true
---


Expand Down
10 changes: 10 additions & 0 deletions layouts/docs/release-info.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
{{ define "main" }}
{{ if not .Site.Params.deprecated }}
{{ .Content }}
{{ else }}
<div class="section-index">
{{ range where .Site.Pages "Section" "releases" }}
{{ if not .IsNode }}
<div class="entry">
<h5><a href="{{ .RelPermalink }}">{{ .Title }}</a></h5>
</div>
{{ end }}
{{ end }}
</div>
{{ end }}
{{ end }}

0 comments on commit 3793f5d

Please sign in to comment.