updated atom feed to use full_url passed from yaml for post urls

This commit is contained in:
B Mathis 2009-11-07 23:02:55 -06:00
parent c27f5f8e5a
commit bc9dd41b84
2 changed files with 9 additions and 9 deletions

View file

@ -174,8 +174,8 @@ module Helpers
end
end
def absolute_url(input)
input.gsub(/(href|src)(\s*=\s*)(["'])(\/.*?)\3/) { $1 + $2 + $3 + "http://brandonmathis.com" + $4 + $3 }
def absolute_url(input, url)
input.gsub(/(href|src)(\s*=\s*)(["'])(\/.*?)\3/) { $1 + $2 + $3 + url + $4 + $3 }
end
def rp(input)