mirror of
https://github.com/godotengine/godot-website.git
synced 2025-12-31 09:48:43 +03:00
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
This commit is contained in:
@@ -57,12 +57,8 @@
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
<div id="call-to-action" class="container card section-download">
|
||||
{% if include.title %}
|
||||
<h2>{{ include.title }}</h2>
|
||||
{% else %}
|
||||
<h2>Ready to start?</h2>
|
||||
{% endif %}
|
||||
<div id="{{ include.anchor | default: 'call-to-action' }}" class="container card section-download">
|
||||
<h2>{{ include.title | default: 'Ready to start?' }}</h2>
|
||||
|
||||
<div class="section-download-ready">
|
||||
{% assign stable_version_3 = site.data.versions | find: "featured", "3" %}
|
||||
|
||||
@@ -66,6 +66,6 @@ layout: default
|
||||
|
||||
<script src="/assets/js/download-version.js"></script>
|
||||
|
||||
{% include /download/download-section.html title="Need a stable version?" %}
|
||||
{% include /download/download-section.html title="Need a stable version?" anchor="stable" %}
|
||||
|
||||
{% include footer.html %}
|
||||
|
||||
Reference in New Issue
Block a user