migrate to jekyll3 - layout metadata is accessed via "layout."
This commit is contained in:
parent
3a2c39e76a
commit
dd085bd8ea
2 changed files with 20 additions and 20 deletions
|
@ -1,23 +1,23 @@
|
|||
{% if page.common-ext-js %}
|
||||
{% for js in page.common-ext-js %}
|
||||
{% if layout.common-ext-js %}
|
||||
{% for js in layout.common-ext-js %}
|
||||
<script src="{{ js }}"></script>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if page.ext-js %}
|
||||
{% for js in page.ext-js %}
|
||||
{% if layout.ext-js %}
|
||||
{% for js in layout.ext-js %}
|
||||
<script src="{{ js }}"></script>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if page.js %}
|
||||
{% for js in page.js %}
|
||||
{% if layout.js %}
|
||||
{% for js in layout.js %}
|
||||
<script src="{{ js | prepend: site.baseurl | replace: '//', '/' }}"></script>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if page.common-js %}
|
||||
{% for js in page.common-js %}
|
||||
{% if layout.common-js %}
|
||||
{% for js in layout.common-js %}
|
||||
<!-- doing something a bit funky here because I want to be careful not to include JQuery twice! -->
|
||||
{% if js contains 'jquery' %}
|
||||
<script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue