This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# _plugins/url_encode.rb | |
require 'liquid' | |
require 'uri' | |
# Percent encoding for URI conforming to RFC 3986. | |
# Ref: http://tools.ietf.org/html/rfc3986#page-12 | |
module URLEncode | |
def url_encode(url) | |
return URI.escape(url, Regexp.new("[^#{URI::PATTERN::UNRESERVED}]")) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
# This is the answer to my stackoverflow question posted here: | |
# http://stackoverflow.com/questions/22824947/what-are-all-the-favicon-html-implementations-as-of-2014-cross-browser-inclusi | |
# (I could not get this posted before it got down-voted and closed) | |
--> | |
<!-- Favicon (standard)--> | |
<!-- | |
# https://github.com/audreyr/favicon-cheat-sheet#ico-file |