Skip to content

Commit

Permalink
Merge pull request #613 from jmesnil/611_releases_page
Browse files Browse the repository at this point in the history
[#611] Add a /releases page
  • Loading branch information
jamezp authored May 17, 2024
2 parents 548de40 + 0a87e07 commit 838aa1f
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 1 deletion.
13 changes: 12 additions & 1 deletion _layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,18 @@
{% assign latestRelease = site.data.releases[site.current_release_index] %}
<h1>Wild<strong>Fly</strong></h1>
<h2>A powerful, modular, & lightweight application server that helps you build amazing applications.</h2>
<h3>Now available: <span style="font-weight: 100;">Wild</span><strong>Fly</strong> {{latestRelease.version_shortname}}</h3>

{% 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 %}

<h3>Now available: <a href="{{ releaseNoteLink }}"><span style="font-weight: 100;">Wild</span><strong>Fly</strong> {{latestRelease.version_shortname}}</a></h3>
<div class="home-ctas">
<a href="{{site.baseurl}}/downloads/" class="button-cta secondary">Download Wild<strong>Fly</strong></a>
<a href="{{site.baseurl}}/get-started/" class="button-cta">Get Started</a>
Expand Down
4 changes: 4 additions & 0 deletions _layouts/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ <h1 class="title">Wild<strong>Fly</strong> Project News</h1>
<a href="{{site.baseurl}}/feed.xml"><i class="fas fa-rss-square"></i></a>
</div>

<div class="grid__item width-10-12 width-12-12-m">
<a href="{{ site.baseurl }}/releases" class="button-cta secondary">Release Announcements</a>
</div>


<div class="grid__item width-10-12 width-12-12-m">
{% for post in paginator.posts %}
Expand Down
45 changes: 45 additions & 0 deletions _layouts/releases.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
layout: base
---

<div class="news-page grid-wrapper">
<div class="grid__item width-10-12">
<h1 class="title">Wild<strong>Fly</strong> Releases</h1>
</div>
<div class="grid__item width-2-12 rss-btn">
<a href="{{site.baseurl}}/feed.xml"><i class="fas fa-rss-square"></i></a>
</div>


<div class="grid__item width-10-12 width-12-12-m">
{% 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 %}
<div class="news-list-item grid-wrapper">
<div class="post-title grid__item width-12-12">
<h2><a href="{% if post.link %}{{ post.link }}{% else %}{{site.baseurl}}{{ post.url }}{% endif %}" {% if post.link %}target="_blank"{% endif %}>{{ post.title }}</a></h2>
</div>
<div class="grid__item width-6-12 width-12-12-m">
<p class="byline">By {{ author | join: ', ' }} | {{ post.date | date: '%B %d, %Y' }}</p>
</div>
<div class="grid__item width-6-12 width-12-12-m">{% include share-page.html %}</div>
<div class="grid__item width-12-12">
{% if post.synopsis %}
<p>{{ post.synopsis | strip_html }}</p>
{% else %}
<p>{{ post.content | strip_html | truncatewords: 75 }}</p>
{% endif %}
</div>
<div class="grid__item width-12-12"><a href="{% if post.link %}{{ post.link }}{% else %}{{site.baseurl}}{{ post.url }}{% endif %}" {% if post.link %}target="_blank"{% endif %}>{% if post.link contains 'youtube' %}Watch Video >{% else %}Read More >{% endif %}</a></div>
</div>
{% endif %}
{% endfor %}
</div>

<div class="grid__item width-2-12"></div>
</div>


5 changes: 5 additions & 0 deletions releases.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
layout: releases
title: "WildFly Release Announcements"
permalink: /releases/
---

0 comments on commit 838aa1f

Please sign in to comment.