|
1 |
| -<!-- everything has to be repeated twice because on 2016-02-01 GitHub pages migrated to jekyll 3; see bug https://github.com/jekyll/jekyll/issues/4439 --> |
2 |
| - |
3 |
| -{% if page.common-ext-js %} |
4 |
| - {% for js in page.common-ext-js %} |
5 |
| -<scriptsrc="{{ js }}"></script> |
6 |
| - {% endfor %} |
7 |
| -{% endif %} |
8 | 1 | {% if layout.common-ext-js %}
|
9 | 2 | {% for js in layout.common-ext-js %}
|
10 | 3 | <scriptsrc="{{ js }}"></script>
|
|
16 | 9 | <scriptsrc="{{ js }}"></script>
|
17 | 10 | {% endfor %}
|
18 | 11 | {% endif %}
|
19 |
| -{% if layout.ext-js %} |
20 |
| - {% for js in layout.ext-js %} |
21 |
| -<scriptsrc="{{ js }}"></script> |
22 |
| - {% endfor %} |
23 |
| -{% endif %} |
24 | 12 |
|
25 | 13 | {% if page.js %}
|
26 | 14 | {% for js in page.js %}
|
27 | 15 | <scriptsrc="{{ js | prepend: site.baseurl | replace: '//', '/' }}"></script>
|
28 | 16 | {% endfor %}
|
29 | 17 | {% endif %}
|
30 |
| -{% if layout.js %} |
31 |
| - {% for js in layout.js %} |
32 |
| -<scriptsrc="{{ js | prepend: site.baseurl | replace: '//', '/' }}"></script> |
33 |
| - {% endfor %} |
34 |
| -{% endif %} |
35 | 18 |
|
36 | 19 | {% if layout.common-js %}
|
37 | 20 | {% for js in layout.common-js %}
|
|
47 | 30 | {% endif %}
|
48 | 31 | {% endfor %}
|
49 | 32 | {% endif %}
|
50 |
| -{% if page.common-js %} |
51 |
| - {% for js in page.common-js %} |
52 |
| -<!-- doing something a bit funky here because I want to be careful not to include JQuery twice! --> |
53 |
| - {% if js contains 'jquery' %} |
54 |
| -<script> |
55 |
| -if(typeofjQuery=='undefined'){ |
56 |
| -document.write('<script src="{{ js | prepend: site.baseurl | replace: "//", "/" }}"></scr'+'ipt>'); |
57 |
| -} |
58 |
| -</script> |
59 |
| - {% else %} |
60 |
| -<scriptsrc="{{ js | prepend: site.baseurl | replace: '//', '/' }}"></script> |
61 |
| - {% endif %} |
62 |
| - {% endfor %} |
63 |
| -{% endif %} |
64 | 33 |
|
65 | 34 | {% include google_analytics.html %}
|