From c26bd30318aae14442fc4f7565d2d6458e10808d Mon Sep 17 00:00:00 2001 From: Stephen McDonald Date: Thu, 29 Dec 2011 11:58:11 +1100 Subject: [PATCH] Fix photo link URL. --- lib/jekyll/migrators/tumblr.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/jekyll/migrators/tumblr.rb b/lib/jekyll/migrators/tumblr.rb index d1df9678..e2758ba8 100644 --- a/lib/jekyll/migrators/tumblr.rb +++ b/lib/jekyll/migrators/tumblr.rb @@ -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 = "" - content = "#{content}" unless url.nil? + unless post["photo-link-url"].nil? + content = "#{content}" + end when "audio" if !post["id3-title"].nil? title = post["id3-title"]