mirror of
https://github.com/greenshot/greenshot
synced 2025-08-26 08:06:09 -07:00
Retrieve latest release from releases collection
This commit is contained in:
parent
3f34f4d2a5
commit
142beee2a0
1 changed files with 6 additions and 7 deletions
|
@ -7,19 +7,18 @@ permalink: /downloads/
|
|||
comments: []
|
||||
tags: menu
|
||||
---
|
||||
{% assign latestRelease = site.github.releases | first %}
|
||||
<!-- TODO retrieve downloadable files -->
|
||||
{% assign latestRelease = site.github.releases | where:"prerelease",false | first %}
|
||||
<div class="two-col left-box">
|
||||
<h2>Download the latest stable release</h2>
|
||||
|
||||
<table class="cta-button">
|
||||
<tr>
|
||||
<td>
|
||||
{% for asset in latestRelease.assets %}
|
||||
{% if asset.name contains 'RELEASE.exe' %}
|
||||
<a href="{{ asset.browser_download_url }}" class="cta" title="Download the latest stable version of Greenshot" rel="nofollow" style="display:table-cell">Latest version</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% for asset in latestRelease.assets %}
|
||||
{% if asset.name contains 'RELEASE.exe' %}
|
||||
<a href="{{ asset.browser_download_url }}" class="cta" title="Download the latest stable version of Greenshot" rel="nofollow" style="display:table-cell">Latest version</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue