migrate to jekyll3 - layout metadata is accessed via "layout."
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user