-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add layout to hide outdated releases
- Loading branch information
1 parent
41b9aa8
commit 3793f5d
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ linktitle: Release History | |
title: Releases | ||
type: docs | ||
layout: release-info | ||
notoc: true | ||
--- | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |