|
@@ -250,13 +250,18 @@
|
|
|
(if (and (config/local-asset? href)
|
|
(if (and (config/local-asset? href)
|
|
|
(config/local-db? (state/get-current-repo)))
|
|
(config/local-db? (state/get-current-repo)))
|
|
|
(asset-link config title href label metadata full_text)
|
|
(asset-link config title href label metadata full_text)
|
|
|
- (let [href (cond
|
|
|
|
|
|
|
+ (let [protocol (and (= "Complex" (first url))
|
|
|
|
|
+ (:protocol (second url)))
|
|
|
|
|
+ href (cond
|
|
|
(util/starts-with? href "http")
|
|
(util/starts-with? href "http")
|
|
|
href
|
|
href
|
|
|
|
|
|
|
|
config/publishing?
|
|
config/publishing?
|
|
|
(subs href 1)
|
|
(subs href 1)
|
|
|
|
|
|
|
|
|
|
+ (= protocol "data")
|
|
|
|
|
+ href
|
|
|
|
|
+
|
|
|
:else
|
|
:else
|
|
|
(get-file-absolute-path config href))]
|
|
(get-file-absolute-path config href))]
|
|
|
(resizable-image config title href metadata full_text false))))))
|
|
(resizable-image config title href metadata full_text false))))))
|