mirror of
https://github.com/tabler/tabler.git
synced 2025-12-22 01:44:25 +04:00
Co-authored-by: codecalm <codecalm@gmail.com> Co-authored-by: Paweł Kuna <1282324+codecalm@users.noreply.github.com>
18 lines
645 B
HTML
18 lines
645 B
HTML
{% if page-libs -%}
|
|
{% capture libs-code -%}
|
|
{% for lib in include.libs -%}
|
|
{% if page-libs contains lib[0] -%}
|
|
{% for file in lib[1] -%}
|
|
<script src="{% if file contains 'http://' or file contains 'https://' %}{{ file | replace: 'GOOGLE_MAPS_KEY', google-maps-key }}{% else %}{{ page | relative }}/libs/{{ 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 -%} |