base tabler
This commit is contained in:
parent
ac2cfa9fe1
commit
0f84beacf1
1432 changed files with 28760 additions and 1 deletions
19
liquid/includes/layout/js-libs.html
Normal file
19
liquid/includes/layout/js-libs.html
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{% if page-libs -%}
|
||||
{% capture libs-code -%}
|
||||
{% for lib in libs -%}
|
||||
{% if page-libs contains lib[0] and lib[1].head == include.head -%}
|
||||
{% for file in lib[1].js -%}
|
||||
<script src="{% if file contains 'http://' or file contains 'https://' %}{{ file | replace: 'GOOGLE_MAPS_KEY', google-maps-key }}{% else %}{{ page | relative }}/dist/libs/{{ lib[1].npm }}/{{ file }}{% if environment != 'development' %}?{{ 'now' | date: '%s' }}{% endif %}{% endif %}" defer></script>
|
||||
{% endfor -%}
|
||||
{% endif -%}
|
||||
{% endfor -%}
|
||||
{% endcapture -%}
|
||||
|
||||
|
||||
{% assign libs-code = libs-code | strip -%}
|
||||
{% if libs-code != "" -%}
|
||||
<!-- BEGIN PAGE LIBRARIES -->
|
||||
{{ libs-code }}
|
||||
<!-- END PAGE LIBRARIES -->
|
||||
{% endif -%}
|
||||
{% endif -%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue