_includes/cssfile/links.html in appscms-tools-theme-3.8.7 vs _includes/cssfile/links.html in appscms-tools-theme-3.8.8
- old
+ new
@@ -1,24 +1,54 @@
{% assign cssData = site.data.[page.folderName][lang][file] %}
-{{site.data.customcdns.customcdns.cssfiles}}
-{%- if cssData.cssfilepaths -%}
-{%- for path in cssData.cssfilepaths -%}
-{%- assign asset_dir = path -%}
-{%- if site.versioning and asset_dir != "" -%}
-{%- if asset_dir contains "https" and asset_dir contains "https://" -%}
-<link defer rel="stylesheet" href="{{path}}" {%- if site.crossorigin -%} {{ }} crossorigin="anonymous" {%- endif -%}>
+{{site.data.customcdns.customcdns.cssfiles}} {%- if cssData.cssfilepaths -%} {%-
+for path in cssData.cssfilepaths -%} {%- assign asset_dir = path -%} {%- if
+site.versioning and asset_dir != "" -%} {%- if asset_dir contains "https" and
+asset_dir contains "https://" -%}
+<link
+ defer
+ rel="stylesheet"
+ href="{{path}}"
+ {%-
+ if
+ site.crossorigin
+ -%}
+ {{
+ }}
+ crossorigin="anonymous"
+ {%-
+ endif
+ -%}
+/>
{%- else -%}
-<link defer rel="stylesheet"
- href="{% ministamp { source_path: '{{ asset_dir }}', destination_path: '{{ asset_dir }}' } %}"
- {%- if site.crossorigin -%} {{ }} crossorigin="anonymous" {%- endif -%}>
-{%- endif -%}
-{%- else -%}
-<link defer rel="stylesheet" href="{{path}}" {%- if site.crossorigin -%} {{ }} crossorigin="anonymous" {%- endif -%}>
-{%- endif -%}
-
-{%- endfor -%}
-{%- endif -%}
-{%- if cssData.csscdns -%}
-{%- for item in cssData.csscdns -%}
-{{item}}
-{%- endfor -%}
-{%- endif -%}
\ No newline at end of file
+<link
+ defer
+ rel="stylesheet"
+ href="{% ministamp { source_path: '{{ asset_dir }}', destination_path: '{{ asset_dir }}' } %}"
+ {%-
+ if
+ site.crossorigin
+ -%}
+ {{
+ }}
+ crossorigin="anonymous"
+ {%-
+ endif
+ -%}
+/>
+{%- endif -%} {%- else -%}
+<link
+ defer
+ rel="stylesheet"
+ href="{{path}}"
+ {%-
+ if
+ site.crossorigin
+ -%}
+ {{
+ }}
+ crossorigin="anonymous"
+ {%-
+ endif
+ -%}
+/>
+{%- endif -%} {%- endfor -%} {%- endif -%} {%- if cssData.csscdns -%} {%- for
+item in cssData.csscdns -%} {{item}} {%- endfor -%} {%- endif -%}