Fix glitch-soc HAML linting issues (#2166)

This commit is contained in:
Claire
2023-04-07 20:55:28 +02:00
committed by GitHub
parent 02d5c69404
commit c3a8f6a0a3
5 changed files with 7 additions and 8 deletions

View File

@@ -9,6 +9,5 @@
= stylesheet_pack_tag pack_path, media: 'all', crossorigin: 'anonymous'
- else
= stylesheet_pack_tag "skins/#{theme[:flavour]}/#{theme[:skin]}/#{theme[:pack]}", media: 'all', crossorigin: 'anonymous'
- if theme[:preload]
- theme[:preload].each do |link|
%link{ href: asset_pack_path("#{link}.js"), crossorigin: 'anonymous', rel: 'preload', as: 'script' }/
- theme[:preload]&.each do |link|
%link{ href: asset_pack_path("#{link}.js"), crossorigin: 'anonymous', rel: 'preload', as: 'script' }/