Skip to content

Commit 5a9ab97

Browse files
committed
Merge #685: Add torrent link to release page
ddf22dc Add torrent link to release page (Sjors Provoost) Pull request description: We currently only show the torrent link on the download page, which only covers the most recent version. This adds a torrent link on each release page: <img width="535" alt="Schermafbeelding 2019-11-25 om 17 04 46" src="https://user-images.githubusercontent.com/10217/69556832-c6f22580-0fa5-11ea-9e18-52aadd5a4c9e.png"> I applied this to 0.19.0.1, 0.18.1 and 0.17.1; probably not worth doing it for older versions. ACKs for top commit: harding: Tested ACK ddf22dc Tree-SHA512: ee2eb15be195ecbd2b669488c6b15a83de71a55bd6ab208388cebd53aa7b47f57b26f2f3343debb60c826312e6c349271afb7b9e37c192c09faaa958d8ff8fa6
2 parents 3384c80 + ddf22dc commit 5a9ab97

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

_includes/download_release.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{% capture RELEASE %}{% for subver in page.release %}{{subver}}{% unless forloop.last %}.{% endunless %}{% endfor %}{% endcapture %}
2+
{% capture PATH_PREFIX %}/bin/bitcoin-core-{{RELEASE}}{% endcapture %}
3+
{% capture FILE_PREFIX %}bitcoin-{{RELEASE}}{% endcapture %}
4+
{% assign magnet=page.optional_magnetlink %}
5+
<https://bitcoincore.org{{ PATH_PREFIX }}/>
6+
7+
<a href="https://bitcoincore.org{{ PATH_PREFIX }}/{{ FILE_PREFIX }}.torrent" class="dl">Download torrent</a>
8+
{% if magnet %} <a href="{{ magnet | replace: '&', '\&amp;'}}" class="magnetlink" data-proofer-ignore></a>{% endif %}<br>

_releases/0.17.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ optional_magnetlink: "magnet:?xt=urn:btih:c56c87ccfaa8e6fbccc90d549121e61efd97cb
2727
{% githubify https://github.com/bitcoin/bitcoin %}
2828
Bitcoin Core version 0.17.1 is now available from:
2929

30-
<https://bitcoincore.org/bin/bitcoin-core-0.17.1/>
30+
{% include download_release.html %}
3131

3232
This is a new minor version release, with various bugfixes
3333
and performance improvements, as well as updated translations.

_releases/0.18.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ optional_magnetlink: "magnet:?xt=urn:btih:c3ba0cfee3ef8413098ac5e81db08a2670e9da
2727
{% githubify https://github.com/bitcoin/bitcoin %}
2828
Bitcoin Core version 0.18.1 is now available from:
2929

30-
<https://bitcoincore.org/bin/bitcoin-core-0.18.1/>
30+
{% include download_release.html %}
3131

3232
This is a new minor version release, including new features, various bug
3333
fixes and performance improvements, as well as updated translations.

_releases/0.19.0.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ optional_magnetlink: "magnet:?xt=urn:btih:436859e8dddf4d8bd22d9ecc826139b6749a9a
3030

3131
Bitcoin Core version 0.19.0.1 is now available from:
3232

33-
<https://bitcoincore.org/bin/bitcoin-core-0.19.0.1/>
33+
{% include download_release.html %}
3434

3535
This release includes new features, various bug fixes and performance
3636
improvements, as well as updated translations.

_sass/download.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
position:relative;
123123
top:4px;
124124
}
125-
.downloadbox .magnetlink{
125+
.magnetlink{
126126
display:inline-block;
127127
width:16px;
128128
height:16px;

0 commit comments

Comments
 (0)