css.html 1.6 KB

123456789101112131415161718192021222324
  1. <!-- CSS files -->
  2. {% if site.use-iconfont %}
  3. <link href="https://cdn.statically.io/gh/tabler/tabler-icons/master/iconfont/tabler-icons.min.css" rel="stylesheet" />
  4. {% endif %}
  5. {% assign libs = page.libs | default: layout.libs %}
  6. {% if libs %}
  7. {% for lib in site.data.libs.css %}
  8. {% if libs contains lib[0] %}
  9. {% for file in lib[1] %}
  10. <link href="{% if file contains 'http://' or file contains 'https://' %}{{ file }}{% else %}{{ site.base }}/{% if jekyll.environment != 'development' %}dist/libs{% else %}node_modules{% endif %}/{% if jekyll.environment != 'development' %}{{ file | replace: '@', '' }}{% else %}{{ file }}{% endif %}{% if jekyll.environment != 'development' %}?{{ site.time | date: '%s' }}{% endif %}{% endif %}" rel="stylesheet"/>
  11. {% endfor %}
  12. {% endif %}
  13. {% endfor %}
  14. {% endif %}
  15. <link href="{{ site.base }}/dist/css/tabler{% if page.rtl or site.rtl %}.rtl{% endif %}{% if jekyll.environment != 'development' %}.min{% endif %}.css{% if jekyll.environment != 'development' %}?{{ site.time | date: '%s' }}{% endif %}" rel="stylesheet"/>
  16. {% for plugin in site.tabler-css-plugins %}
  17. <link href="{{ site.base }}/dist/css/{{ plugin }}{% if page.rtl or site.rtl %}.rtl{% endif %}{% if jekyll.environment != 'development' %}.min{% endif %}.css{% if jekyll.environment != 'development' %}?{{ site.time | date: '%s' }}{% endif %}" rel="stylesheet"/>
  18. {% endfor %}
  19. <link href="{{ site.base }}/dist/css/demo{% if page.rtl or site.rtl %}.rtl{% endif %}{% if jekyll.environment != 'development' %}.min{% endif %}.css{% if jekyll.environment != 'development' %}?{{ site.time | date: '%s' }}{% endif %}" rel="stylesheet"/>