Files
godot-website/pages/download/preview.html
Jimmy Cushnie 888488af9c Add custom anchor to download-section.html, and use it to fix link on previews download page (#1000)
* Add custom anchor to download-section.html, and use it to fix link on preview.html

There's a link at the top of the previews download page which says "Looking for a stable version? See below!"

This link is supposed to scroll the page to the section lower down where you can download the stable version. However, prior to this commit, the link doesn't work because it points to an anchor that no longer exists.

The link points to #stable. However, the actual anchor, as defined in download-section.html, is #call-to-action.

This commit lets you set a custom anchor when you include download-section.html, and does so in preview.html to fix the broken link.

* Simplify header in download-section.html
2025-01-20 18:22:06 +01:00

72 lines
1.7 KiB
HTML

---
permalink: /download/preview/index.html
title: "Download Godot preview builds - Godot Engine"
description: "Download the latest preview version of the Godot Engine 3 and Godot Engine 4 for Linux, macOS, Windows, or Android"
layout: default
---
{% include header.html %}
<link rel="stylesheet" href="/assets/css/transparent-nav.css?2">
<link rel="stylesheet" href="/assets/css/download.css?2">
<link rel="stylesheet" href="/assets/css/download-version.css?2">
<style>
.hero {
background-image: url('/assets/download/download-background-preview.webp');
}
.hero-blurb {
color: var(--download-hero-color);
}
.preview-cards {
display: grid;
grid-template-columns: 1fr;
gap: 16px;
}
</style>
<div class="hero">
<div class="hero-wrapper">
<h1>Download Godot preview builds</h1>
<div class="hero-blurb">
<p>
Help test the upcoming release of the engine,
<br />
and be the first to benefit from new features.
</p>
</div>
</div>
<div class="other-platforms">
<div class="other-platforms-wrapper">
Looking for the stable version? <a href="#stable">See below!</a>
</div>
</div>
</div>
<div class="container">
<div class="padded" style="padding-top:0;margin-top:32px">
<h2>Latest preview builds</h2>
{% assign stable_versions = site.data.versions | where: "flavor", "stable" %}
<div class="preview-cards">
{% for version in site.data.versions %}
{% unless stable_versions contains version %}
{% include download/version-card.html version=version %}
{% endunless %}
{% endfor %}
</div>
</div>
</div>
<script src="/assets/js/download-version.js"></script>
{% include /download/download-section.html title="Need a stable version?" anchor="stable" %}
{% include footer.html %}