mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-30 09:18:11 -05:00
Fix photo link URL.
This commit is contained in:
@@ -60,7 +60,9 @@ module Jekyll
|
||||
max_size = post.keys.map{ |k| k.gsub("photo-url-", "").to_i }.max
|
||||
url = post["photo-url"] || post["photo-url-#{max_size}"]
|
||||
content = "<img src=\"#{save_file(url)}\"/>"
|
||||
content = "<a href=\"#{url}\">#{content}</a>" unless url.nil?
|
||||
unless post["photo-link-url"].nil?
|
||||
content = "<a href=\"#{post["photo-link-url"]}\">#{content}</a>"
|
||||
end
|
||||
when "audio"
|
||||
if !post["id3-title"].nil?
|
||||
title = post["id3-title"]
|
||||
|
||||
Reference in New Issue
Block a user