Skip to content

Commit dd085bd

Browse files
committed
migrate to jekyll3 - layout metadata is accessed via "layout."
1 parent 3a2c39e commit dd085bd

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

_includes/footer-scripts.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
{% if page.common-ext-js %}
2-
{% for js in page.common-ext-js %}
1+
{% if layout.common-ext-js %}
2+
{% for js in layout.common-ext-js %}
33
<script src="{{ js }}"></script>
44
{% endfor %}
55
{% endif %}
66

7-
{% if page.ext-js %}
8-
{% for js in page.ext-js %}
7+
{% if layout.ext-js %}
8+
{% for js in layout.ext-js %}
99
<script src="{{ js }}"></script>
1010
{% endfor %}
1111
{% endif %}
1212

13-
{% if page.js %}
14-
{% for js in page.js %}
13+
{% if layout.js %}
14+
{% for js in layout.js %}
1515
<script src="{{ js | prepend: site.baseurl | replace: '//', '/' }}"></script>
1616
{% endfor %}
1717
{% endif %}
1818

19-
{% if page.common-js %}
20-
{% for js in page.common-js %}
19+
{% if layout.common-js %}
20+
{% for js in layout.common-js %}
2121
<!-- doing something a bit funky here because I want to be careful not to include JQuery twice! -->
2222
{% if js contains 'jquery' %}
2323
<script>

_includes/head.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,38 +13,38 @@
1313

1414
<link rel="alternate" type="application/rss+xml" title="{{ site.title }} - {{ site.description }}" href="{{ site.baseurl }}/feed.xml" />
1515

16-
{% if page.common-ext-css %}
17-
{% for css in page.common-ext-css %}
16+
{% if layout.common-ext-css %}
17+
{% for css in layout.common-ext-css %}
1818
<link rel="stylesheet" href="{{ css }}" />
1919
{% endfor %}
2020
{% endif %}
2121

22-
{% if page.common-css %}
23-
{% for css in page.common-css %}
22+
{% if layout.common-css %}
23+
{% for css in layout.common-css %}
2424
<link rel="stylesheet" href="{{ css | prepend: site.baseurl | replace: '//', '/' }}" />
2525
{% endfor %}
2626
{% endif %}
2727

28-
{% if page.common-googlefonts %}
29-
{% for font in page.common-googlefonts %}
28+
{% if layout.common-googlefonts %}
29+
{% for font in layout.common-googlefonts %}
3030
<link rel="stylesheet" href="//fonts.googleapis.com/css?family={{ font }}" />
3131
{% endfor %}
3232
{% endif %}
3333

34-
{% if page.ext-css %}
35-
{% for css in page.ext-css %}
34+
{% if layout.ext-css %}
35+
{% for css in layout.ext-css %}
3636
<link rel="stylesheet" href="{{ css }}" />
3737
{% endfor %}
3838
{% endif %}
3939

40-
{% if page.css %}
41-
{% for css in page.css %}
40+
{% if layout.css %}
41+
{% for css in layout.css %}
4242
<link rel="stylesheet" href="{{ css | prepend: site.baseurl | replace: '//', '/' }}" />
4343
{% endfor %}
4444
{% endif %}
4545

46-
{% if page.googlefonts %}
47-
{% for font in page.googlefonts %}
46+
{% if layout.googlefonts %}
47+
{% for font in layout.googlefonts %}
4848
<link rel="stylesheet" href="//fonts.googleapis.com/css?family={{ font }}" />
4949
{% endfor %}
5050
{% endif %}

0 commit comments

Comments
 (0)