Browse Source

added ns logic to api_url

pull/374/head
Spocke 9 years ago
parent
commit
a78da7ae28
  1. 9
      _plugins/api_url.rb

9
_plugins/api_url.rb

@ -1,7 +1,14 @@
module Jekyll
module APIURLFilter
def api_url(input)
input.downcase if !input.nil?
fullName = input.downcase
if fullName == "tinymce"
"tinymce/root_tinymce"
else
namespace = fullName.gsub(/\.[^.]+$/, "")
namespace + "/" + fullName if !input.nil?
end
end
end
end

Loading…
Cancel
Save