in _plugins/plugins.rb [24:31]
def cdn_url(path)
if @context.registers[:site].config["cdn_enabled"]
URI.join(@context.registers[:site].config["cdn_prefix"], Pathname(path).relative_path_from(Pathname("/")).to_s).to_s
else
relativize_url(path)
end
end