updated atom feed to use full_url passed from yaml for post urls
This commit is contained in:
parent
c27f5f8e5a
commit
bc9dd41b84
2 changed files with 9 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue