Skip to content

Commit 27488dc

Browse files
authored
Merge pull request SwedishForcesPack#24 from Dahlgren/feature/downloads-template
Downloads template
2 parents 3bdc0b0 + 69e2d81 commit 27488dc

File tree

13 files changed

+102
-239
lines changed

13 files changed

+102
-239
lines changed

_includes/downloads.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<div class="container" id="downloads">
2+
<h2>Downloads</h2>
3+
4+
{% if page.downloads.armaholic || page.downloads.steam || page.downloads.withsix %}
5+
<div class="row">
6+
{% if page.downloads.steam %}
7+
<div class="col-md-4">
8+
<strong class="d-block">Steam Workshop</strong>
9+
{% include downloads/steam_workshop.html id=page.downloads.steam %}
10+
</div>
11+
{% endif %}
12+
13+
{% if page.downloads.armaholic %}
14+
<div class="col-md-4">
15+
<strong class="d-block">Armaholic</strong>
16+
{% include downloads/armaholic.html id=page.downloads.armaholic %}
17+
</div>
18+
{% endif %}
19+
20+
{% if page.downloads.withsix %}
21+
<div class="col-md-4">
22+
<strong class="d-block">withSIX</strong>
23+
{% include downloads/withsix.html link=page.downloads.withsix %}
24+
</div>
25+
{% endif %}
26+
</div>
27+
{% endif %}
28+
29+
{% if page.downloads.other %}
30+
{% for download in page.downloads.other %}
31+
<p>
32+
<a href="{{ download.link }}" class="btn btn-{{ download.color }} btn-lg">
33+
<span class="fa fa-save"></span>
34+
{{ download.title }}
35+
</a>
36+
</p>
37+
{% endfor %}
38+
{% endif %}
39+
</div>

_includes/downloads/armaholic.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<a href="http://www.armaholic.com/page.php?id={{ include.id }}" target=_blank>
1+
<a class="d-block" href="http://www.armaholic.com/page.php?id={{ include.id }}" target=_blank>
22
<img src="/images/armaholic_download.png" class="img-fluid" alt="Armaholic" />
33
</a>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<a href="http://steamcommunity.com/sharedfiles/filedetails/?id={{ include.id }}" target=_blank>
1+
<a class="d-block" href="https://steamcommunity.com/sharedfiles/filedetails/{{ include.id }}" target=_blank>
22
<img src="/images/steam_workshop.png" class="rounded img-fluid" alt="Steam Workshop" />
33
</a>

_includes/downloads/withsix.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<a href="{{ include.link }}" target=_blank>
1+
<a class="d-block" href="{{ include.link }}" target=_blank>
22
<img src="/images/playwithsix.png" class="img-fluid" alt="withSIX" />
33
</a>

a1/index.html

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
---
22
title: Arma 1 | Swedish Forces Pack
3+
downloads:
4+
other:
5+
-
6+
color: primary
7+
link: https://hosted.anrop.se/arma/@sfp_revision15.rar
8+
title: SFP 5, Revision 15
9+
-
10+
color: secondary
11+
link: https://hosted.anrop.se/arma/@swe_voice.zip
12+
title: Swedish Voices
313
images:
414
-
515
path: images/rbs56.jpg
@@ -108,23 +118,7 @@ <h3>Vehicles</h3>
108118
</div>
109119
</div>
110120

111-
<div class="container" id="downloads">
112-
<h2>Downloads</h2>
113-
114-
<p>
115-
<a href="http://hosted.anrop.se/arma/@sfp_revision15.rar" class="btn btn-primary btn-lg">
116-
<span class="fa fa-save"></span>
117-
SFP 5 for Arma 1, Revision 15
118-
</a>
119-
</p>
120-
121-
<p>
122-
<a href="http://hosted.anrop.se/arma/@swe_voice.zip" class="btn btn-secondary btn-lg">
123-
<span class="fa fa-save"></span>
124-
Swedish Voices for Arma 1
125-
</a>
126-
</p>
127-
</div>
121+
{% include downloads.html %}
128122

129123
{% include images_16_9.html %}
130124

a2/index.html

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
22
title: Arma 2 | Swedish Forces Pack
3+
downloads:
4+
armaholic: 11586
5+
withsix: https://withsix.com/p/Arma-2/mods/xFXgUi404BGjjgAVF72WTA/Swedish-Forces-Pack
36
images:
47
-
58
path: images/assembly.jpg
@@ -91,27 +94,7 @@ <h3>1981 scenario</h3>
9194
</p>
9295
</div>
9396

94-
<div class="container" id="downloads">
95-
<h2>Downloads</h2>
96-
97-
<div class="row">
98-
<div class="col-md-4">
99-
<strong>Armaholic</strong>
100-
{%
101-
include downloads/armaholic.html
102-
id="11586"
103-
%}
104-
</div>
105-
106-
<div class="col-md-4">
107-
<strong>withSIX</strong>
108-
{%
109-
include downloads/withsix.html
110-
link="http://withsix.com/p/Arma-2/mods/xFXgUi404BGjjgAVF72WTA/Swedish-Forces-Pack"
111-
%}
112-
</div>
113-
</div>
114-
</div>
97+
{% include downloads.html %}
11598

11699
{% include images_4_3.html %}
117100

a3/finnish/index.html

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
---
22
title: Finnish Forces Pack
3+
downloads:
4+
armaholic: 32754
5+
steam: 917042703
6+
withsix: http://withsix.com/p/Arma-3/mods/alMWxl5wPEGxzlw_zxlxnA/SFP-Finnish-Forces-Pack
37
images:
48
-
59
path: images/soldiers.jpg
@@ -86,35 +90,7 @@ <h3>Weapons</h3>
8690
</div>
8791
</div>
8892

89-
<div class="container" id="downloads">
90-
<h2>Downloads</h2>
91-
92-
<div class="row">
93-
<div class="col-md-4">
94-
<strong>Steam Workshop</strong>
95-
{%
96-
include downloads/steam_workshop.html
97-
id="917042703"
98-
%}
99-
</div>
100-
101-
<div class="col-md-4">
102-
<strong>Armaholic</strong>
103-
{%
104-
include downloads/armaholic.html
105-
id="32754"
106-
%}
107-
</div>
108-
109-
<div class="col-md-4">
110-
<strong>withSIX</strong>
111-
{%
112-
include downloads/withsix.html
113-
link="http://withsix.com/p/Arma-3/mods/alMWxl5wPEGxzlw_zxlxnA/SFP-Finnish-Forces-Pack"
114-
%}
115-
</div>
116-
</div>
117-
</div>
93+
{% include downloads.html %}
11894

11995
{% include images_16_9.html %}
12096

a3/index.html

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
---
22
title: Arma 3 | Swedish Forces Pack
3+
downloads:
4+
armaholic: 20042
5+
steam: 826911897
6+
withsix: https://withsix.com/p/Arma-3/mods/bCScK_d14xGDcQAVF72WTA/Swedish-Forces-Pack
37
images:
48
-
59
path: images/soldiers.jpg
@@ -222,35 +226,7 @@ <h4>Rifles</h4>
222226
<p>
223227
</div>
224228

225-
<div class="container" id="downloads">
226-
<h2>Downloads</h2>
227-
228-
<div class="row">
229-
<div class="col-md-4">
230-
<strong>Steam Workshop</strong>
231-
{%
232-
include downloads/steam_workshop.html
233-
id="826911897"
234-
%}
235-
</div>
236-
237-
<div class="col-md-4">
238-
<strong>Armaholic</strong>
239-
{%
240-
include downloads/armaholic.html
241-
id="20042"
242-
%}
243-
</div>
244-
245-
<div class="col-md-4">
246-
<strong>withSIX</strong>
247-
{%
248-
include downloads/withsix.html
249-
link="http://withsix.com/p/Arma-3/mods/bCScK_d14xGDcQAVF72WTA/Swedish-Forces-Pack"
250-
%}
251-
</div>
252-
</div>
253-
</div>
229+
{% include downloads.html %}
254230

255231
{% include images_16_9.html %}
256232

a3/markers/index.html

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
---
22
title: Swedish Markers
3+
downloads:
4+
armaholic: 33112
5+
steam: 1109576969
6+
withsix: https://withsix.com/p/Arma-3/mods/E7bdR3r-m1OBIRobTCZ3UA/SFP-Swedish-Markers
37
---
48

59
<div class="container">
@@ -14,32 +18,4 @@ <h2>Description</h2>
1418
</p>
1519
</div>
1620

17-
<div class="container" id="downloads">
18-
<h2>Downloads</h2>
19-
20-
<div class="row">
21-
<div class="col-md-4">
22-
<strong>Steam Workshop</strong>
23-
{%
24-
include downloads/steam_workshop.html
25-
id="1109576969"
26-
%}
27-
</div>
28-
29-
<div class="col-md-4">
30-
<strong>Armaholic</strong>
31-
{%
32-
include downloads/armaholic.html
33-
id="33112"
34-
%}
35-
</div>
36-
37-
<div class="col-md-4">
38-
<strong>withSIX</strong>
39-
{%
40-
include downloads/withsix.html
41-
link="http://withsix.com/p/Arma-3/mods/E7bdR3r-m1OBIRobTCZ3UA/SFP-Swedish-Markers"
42-
%}
43-
</div>
44-
</div>
45-
</div>
21+
{% include downloads.html %}

a3/objects/index.html

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
---
22
title: Objects | Swedish Forces Pack
3+
downloads:
4+
armaholic: 29436
5+
steam: 901757999
6+
withsix: https://withsix.com/p/Arma-3/mods/vCt_SWXtJkmXalonMw9QiA/SFP-Objects
37
---
48

59
<div class="container">
@@ -95,32 +99,4 @@ <h3>Other objects</h3>
9599
<p>
96100
</div>
97101

98-
<div class="container" id="downloads">
99-
<h2>Downloads</h2>
100-
101-
<div class="row">
102-
<div class="col-md-4">
103-
<strong>Steam Workshop</strong>
104-
{%
105-
include downloads/steam_workshop.html
106-
id="901757999"
107-
%}
108-
</div>
109-
110-
<div class="col-md-4">
111-
<strong>Armaholic</strong>
112-
{%
113-
include downloads/armaholic.html
114-
id="29436"
115-
%}
116-
</div>
117-
118-
<div class="col-md-4">
119-
<strong>withSIX</strong>
120-
{%
121-
include downloads/withsix.html
122-
link="https://withsix.com/p/Arma-3/mods/vCt_SWXtJkmXalonMw9QiA/SFP-Objects"
123-
%}
124-
</div>
125-
</div>
126-
</div>
102+
{% include downloads.html %}

0 commit comments

Comments
 (0)