diff options
Diffstat (limited to 'source/_helpers.rb')
-rw-r--r-- | source/_helpers.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/_helpers.rb b/source/_helpers.rb index 0c767f70..4f7dbf6c 100644 --- a/source/_helpers.rb +++ b/source/_helpers.rb @@ -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) |