css.html 1.5 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 page-libs = page-libs | default: layout.page-libs %}
  6. {% if page-libs %}
  7. {% for lib in libs.css %}
  8. {% if page-libs contains lib[0] %}
  9. {% for file in lib[1] %}
  10. <link href="{% if file contains 'http://' or file contains 'https://' %}{{ file }}{% else %}{{ base }}/{% if env != 'development' %}dist/libs{% else %}node_modules{% endif %}/{% if env != 'development' %}{{ file | replace: '@', '' }}{% else %}{{ file }}{% endif %}{% if env != 'development' %}?{{ site.time | date: '%s' }}{% endif %}{% endif %}" rel="stylesheet"/>
  11. {% endfor %}
  12. {% endif %}
  13. {% endfor %}
  14. {% endif %}
  15. <link href="{{ base }}/dist/css/tabler{% if rtl or site.rtl %}.rtl{% endif %}{% if env != 'development' %}.min{% endif %}.css{% if env != 'development' %}?{{ site.time | date: '%s' }}{% endif %}" rel="stylesheet"/>
  16. {% for plugin in site.tabler-css-plugins %}
  17. <link href="{{ base }}/dist/css/{{ plugin }}{% if rtl or site.rtl %}.rtl{% endif %}{% if env != 'development' %}.min{% endif %}.css{% if env != 'development' %}?{{ site.time | date: '%s' }}{% endif %}" rel="stylesheet"/>
  18. {% endfor %}
  19. <link href="{{ base }}/assets/css/demo{% if rtl or site.rtl %}.rtl{% endif %}{% if env != 'development' %}.min{% endif %}.css{% if env != 'development' %}?{{ site.time | date: '%s' }}{% endif %}" rel="stylesheet"/>