1. Added condition to full_url filter to allow it to be used as a root_url appending filter for remapping root "/" urls when octopress is deployed to a subdirectory. Updated _includes/article and _layouts/page to use the filter
2. Added documentation for the include_code plugin
This commit is contained in:
parent
05e4b7951d
commit
44e1351fc7
4 changed files with 12 additions and 4 deletions
|
@ -21,6 +21,7 @@ module OctopressFilters
|
|||
|
||||
# Replaces relative urls with full urls
|
||||
def full_urls(input, url='')
|
||||
url ||= ''
|
||||
input.gsub /(\s+(href|src)\s*=\s*["|']{1})(\/[^\"'>]+)/ do
|
||||
$1+url+$3
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue