From 9c9661e8f23839f6b689bcfacda787d6d633e798 Mon Sep 17 00:00:00 2001 From: Jeff Mesnil Date: Thu, 16 May 2024 10:16:56 +0200 Subject: [PATCH 1/2] [#611] Add a /releases page The /releases page lists the Release announcements from WildFly (based on the tags "release announcement") to provide a one-page destination for all WildFly releases. This fixes #611 Signed-off-by: Jeff Mesnil --- _layouts/news.html | 4 ++++ _layouts/releases.html | 45 ++++++++++++++++++++++++++++++++++++++++++ releases.md | 5 +++++ 3 files changed, 54 insertions(+) create mode 100644 _layouts/releases.html create mode 100644 releases.md diff --git a/_layouts/news.html b/_layouts/news.html index 2970372f..3eb4ef4d 100644 --- a/_layouts/news.html +++ b/_layouts/news.html @@ -10,6 +10,10 @@

WildFly Project News

+ +
{% for post in paginator.posts %} diff --git a/_layouts/releases.html b/_layouts/releases.html new file mode 100644 index 00000000..a2b4be0e --- /dev/null +++ b/_layouts/releases.html @@ -0,0 +1,45 @@ +--- +layout: base +--- + +
+
+

WildFly Releases

+
+
+ +
+ + +
+ {% for post in site.posts %} + {% if post.tags contains 'release' and post.tags contains 'announcement' %} + {% assign author = "" | split: ',' %} + {% for a in post.author %} + {% assign author = author | push: site.data.authors[a].name %} + {% endfor %} +
+
+

{{ post.title }}

+
+
+ +
+
{% include share-page.html %}
+
+ {% if post.synopsis %} +

{{ post.synopsis | strip_html }}

+ {% else %} +

{{ post.content | strip_html | truncatewords: 75 }}

+ {% endif %} +
+ +
+ {% endif %} + {% endfor %} +
+ +
+
+ + diff --git a/releases.md b/releases.md new file mode 100644 index 00000000..ef531e56 --- /dev/null +++ b/releases.md @@ -0,0 +1,5 @@ +--- +layout: releases +title: "WildFly Release Announcements" +permalink: /releases/ +--- From 0a87e07cd20e3f69576861e13e0bfe1f851bdec2 Mon Sep 17 00:00:00 2001 From: Jeff Mesnil Date: Thu, 16 May 2024 10:37:36 +0200 Subject: [PATCH 2/2] Add link to latest release announcement to homepage Signed-off-by: Jeff Mesnil --- _layouts/index.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/_layouts/index.html b/_layouts/index.html index 24b78043..36b4eeb1 100644 --- a/_layouts/index.html +++ b/_layouts/index.html @@ -8,7 +8,18 @@ {% assign latestRelease = site.data.releases[site.current_release_index] %}

WildFly

A powerful, modular, & lightweight application server that helps you build amazing applications.

-

Now available: WildFly {{latestRelease.version_shortname}}

+ + {% for link in latestRelease.link %} + {% if link.name == "Release Notes" %} + {% for item in link.items %} + {% if item.format == "Notes" %} + {% assign releaseNoteLink = item.url %} + {% endif %} + {% endfor %} + {% endif %} + {% endfor %} + +

Now available: WildFly {{latestRelease.version_shortname}}