middleman-automatic-clowncar 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7d1c5387f4d2ee33f8a4795a178278d3c64f7ba3db81fbb061a468a6b7fc264d
|
|
4
|
+
data.tar.gz: 4e767881922623cadde291bd6118a09a9f8d1de486721a8e286734601470febe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bb9c10cc06567764fe4dbf77640d24467bb05fec9e7c5040bffbeb6582ef65ea56c4dafb90ea065a469f88a1b9ee9faabcb7607a32e3f1ba01692792a26be469
|
|
7
|
+
data.tar.gz: 10434cb75830dae162ce46a178aba5c9ee9781cf59545f3ba645142ee82339c1a65f4f79ab9a7e091ee100b45da051564bde5684307a1b8459fc8f2eb6cd814c
|
|
@@ -80,8 +80,7 @@ module Middleman
|
|
|
80
80
|
|
|
81
81
|
if is_relative
|
|
82
82
|
url = app.asset_path(:images, svg_path)
|
|
83
|
-
|
|
84
|
-
images_dir = 'images' # app.images_dir
|
|
83
|
+
images_dir = app.config[:images_dir] || 'images'
|
|
85
84
|
url = url.sub("/#{images_dir}/",'/')
|
|
86
85
|
if fallback_host && is_relative_url?(url)
|
|
87
86
|
File.join(fallback_host, url)
|
|
@@ -169,6 +168,8 @@ module Middleman
|
|
|
169
168
|
if is_relative_url?(test_path)
|
|
170
169
|
if options.has_key?(:host)
|
|
171
170
|
fallback_host = options[:host]
|
|
171
|
+
elsif app.config[:asset_host]
|
|
172
|
+
fallback_host = app.config[:asset_host]
|
|
172
173
|
else
|
|
173
174
|
warn "WARNING: Inline clowncar images require absolute paths. Please set a :host value"
|
|
174
175
|
end
|