mirror of
https://github.com/tabler/tabler.git
synced 2026-09-01 23:01:29 +04:00
Add SRI integrity keys for RTL CSS plugins
This commit is contained in:
@@ -26,10 +26,12 @@
|
|||||||
|
|
||||||
<!-- BEGIN PLUGINS STYLES -->
|
<!-- BEGIN PLUGINS STYLES -->
|
||||||
{% for plugin in site.cssPlugins -%}
|
{% for plugin in site.cssPlugins -%}
|
||||||
|
{% assign sriKey = "css-" | append: plugin -%}
|
||||||
{% if layout-rtl -%}
|
{% if layout-rtl -%}
|
||||||
<link href="{{ page | relative }}/dist/css/tabler-{{ plugin }}.rtl{% if environment != 'development' %}.min{% endif %}.css{% if environment != 'development' %}?{{ 'now' | date: '%s' }}{% endif %}" rel="stylesheet"{% if environment != 'development' %} integrity="{{ sri[`css-${plugin}-rtl`] }}"{% endif %}/>
|
{% assign sriKey = "css-" | append: plugin | append: "-rtl" -%}
|
||||||
|
<link href="{{ page | relative }}/dist/css/tabler-{{ plugin }}.rtl{% if environment != 'development' %}.min{% endif %}.css{% if environment != 'development' %}?{{ 'now' | date: '%s' }}{% endif %}" rel="stylesheet"{% if environment != 'development' %} integrity="{{ sri[sriKey] }}"{% endif %}/>
|
||||||
{% else -%}
|
{% else -%}
|
||||||
<link href="{{ page | relative }}/dist/css/tabler-{{ plugin }}{% if environment != 'development' %}.min{% endif %}.css{% if environment != 'development' %}?{{ 'now' | date: '%s' }}{% endif %}" rel="stylesheet"{% if environment != 'development' %} integrity="{{ sri[`css-${plugin}`] }}"{% endif %}/>
|
<link href="{{ page | relative }}/dist/css/tabler-{{ plugin }}{% if environment != 'development' %}.min{% endif %}.css{% if environment != 'development' %}?{{ 'now' | date: '%s' }}{% endif %}" rel="stylesheet"{% if environment != 'development' %} integrity="{{ sri[sriKey] }}"{% endif %}/>
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{% endfor -%}
|
{% endfor -%}
|
||||||
<!-- END PLUGINS STYLES -->
|
<!-- END PLUGINS STYLES -->
|
||||||
|
|||||||
Reference in New Issue
Block a user