mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-01-01 01:16:26 +00:00
updated atom feed to use full_url passed from yaml for post urls
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user