Skip to content

Commit 2d9e21c

Browse files
committed
Move DemoModel1.zip to the files database.
1 parent a2f0b28 commit 2d9e21c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

_data/files.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,7 @@ doc_curves:
3838
url: /assets/files/superelevation_v1.pdf
3939
date: 2014-06-03
4040
bytes: 126282
41+
content_demomodel1:
42+
url: http://openrails.org/files/DemoModel1.zip
43+
date: 2015-07-30
44+
bytes: 253648854

_includes/file_meta.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
{{ site.data.files[include.file]["date"] | date: "%d %B %Y" }},
2-
{% assign size = site.data.files[include.file]["bytes"] %}
1+
{{ site.data.files[include.file]["date"] | date: "%d %B %Y" }}, {% assign size = site.data.files[include.file]["bytes"] %}
32
{%- if size >= 1073741824 -%}
43
{{ size | divided_by: 1073741824.0 | round: 1 }}GB
54
{%- elsif size >= 1048576 -%}

download/content/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div class="col-md-4">
1010
<h2>Demo Model 1</h2>
1111
<p>
12-
You can try out Open Rails by <a href="/assets/files/DemoModel1.zip" title="Warning: large download - 250MB">downloading this model</a> to drive the route from Edinburgh towards Glasgow.
12+
You can try out Open Rails by <a href="{% include file_url.html file="content_demomodel1" %}" title="{% include file_meta.html file="content_demomodel1" %}">downloading this model</a> to drive the route from Edinburgh towards Glasgow.
1313
</p><p>
1414
Models contain lots of detail
1515
and this model, which is cut down from a full-size commercial route, compresses to 250MB. Installation instructions are included.

0 commit comments

Comments
 (0)