diff options
author | B Mathis <brandon@imathis.com> | 2009-11-07 23:02:55 -0600 |
---|---|---|
committer | B Mathis <brandon@imathis.com> | 2009-11-07 23:02:55 -0600 |
commit | bc9dd41b84705d06440d0073b95bff33d89cf6c6 (patch) | |
tree | d446a267d40d918dbe76cf9524e96df5162554ca /source/_helpers.rb | |
parent | c27f5f8e5a4e35eecadf5c1565ab6e76a5a688e8 (diff) | |
download | my_new_personal_website-bc9dd41b84705d06440d0073b95bff33d89cf6c6.tar.xz my_new_personal_website-bc9dd41b84705d06440d0073b95bff33d89cf6c6.zip |
updated atom feed to use full_url passed from yaml for post urls
Diffstat (limited to '')
-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) |