123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <!-- Libs JS -->
- {% assign page-libs = page-libs | default: layout.page-libs %}
- {% assign google-maps-key = site.google-maps-dev-key %}
- {% if env != 'development' %}
- {% assign google-maps-key = site.google-maps-key %}
- {% endif %}
- {% for lib in libs.js %}
- {% if page-libs contains lib[0] or libs.global-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 %}{{ base }}/assets/libs/{{ file }}{% if env != 'development' %}?{{ site.time | date: '%s' }}{% endif %}{% endif %}" defer></script>
- {% endfor %}
- {% endif %}
- {% endfor %}
- <!-- Tabler Core -->
- <script src="{{ base }}/dist/js/tabler.bundle{% if env != 'development' %}.min{% endif %}.js{% if env != 'development' %}?{{ site.time | date: '%s' }}{% endif %}" defer></script>
- <script src="{{ base }}/dist/js/demo{% if env != 'development' %}.min{% endif %}.js{% if env != 'development' %}?{{ site.time | date: '%s' }}{% endif %}" defer></script>
- {% comment %}
- {% for script in site.captured_global.scripts %}
- {{ script }}
- {% endfor %}
- {% for script in site.captured_once.scripts %}
- {{ script }}
- {% endfor %}
- {% assign libs = page.libs | default: layout.libs %}
- {% for lib in libs.js-files %}
- {% if libs contains lib[0] or libs.global-libs contains lib[0] %}
- {% for file in lib[1] %}
- {% assign filename = 'js/' | append: file | append: '.html' %}
- {% include filename %}
- {% endfor %}
- {% endif %}
- {% endfor %}
- {% endcomment %}
|