Skip to content

Commit d4ad55f

Browse files
authored
Fix: use the changelog filename from the manifest (#355)
1 parent b9f3e1b commit d4ad55f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

_layouts/download.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,7 @@ <h3>Download {{ page.name }}</h3>
3434
<div class="content">
3535
<p>Latest {{ page.name }} release in {{ page.category }} is {{ page.version }}, released on {{ page.date | date: "%Y-%m-%d %H:%M" }} UTC.</p>
3636

37-
{% assign markdowndate = '2024-10-22' | date: '%s' %}
38-
{% assign versiondate = page.date | date: '%s' %}
39-
{% if versiondate > markdowndate && raw_type contains "openttd" %}
40-
<div class="changelog">[&nbsp;<a href="https://cdn.openttd.org/{{ folder }}/changelog.md">Changelog</a>&nbsp;]</div>
41-
{% else %}
42-
<div class="changelog">[&nbsp;<a href="https://cdn.openttd.org/{{ folder }}/changelog.txt">Changelog</a>&nbsp;]</div>
43-
{% endif %}
37+
<div class="changelog">[&nbsp;<a href="https://cdn.openttd.org/{{ folder }}/{{ page.changelog | default: "changelog.txt" }}">Changelog</a>&nbsp;]</div>
4438
<div id="download-combo">
4539
<input type="hidden" id="download-combo-state" value="" />
4640
<input type="hidden" id="download-base-name" value="{{ page.base }}" />

0 commit comments

Comments
 (0)