Skip to content

Commit e5a3d78

Browse files
committed
Move preamble include from layout to content file.
1 parent 9abacfa commit e5a3d78

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

_includes/program/all_preambles.html

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{%- for preamble in page.preambles -%}
2+
{%- include program/preamble.html modal=preamble.modal title=preamble.title file=preamble.file -%}
3+
{%- endfor -%}

_layouts/default.html

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ <h1>{{ page.title }}</h1>
2727

2828
</div>
2929

30+
{%- include program/all_preambles.html -%}
31+
3032
</body>
3133

3234
</html>

_layouts/homepage.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
</div>
3131

32-
{%- include program/preamble.html modal="modal1" title="Download Open Rails" file="stable_installer" -%}
32+
{%- include program/all_preambles.html -%}
3333

3434
<!-- Modal -->
3535
<style>

index.html

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
---
22
layout: homepage
33
title: Open Rails - Free train simulator project
4+
preambles:
5+
- modal: modal1
6+
title: Download Open Rails
7+
file: stable_installer
48
---
59

610
<div class="row">

0 commit comments

Comments
 (0)