class Jekyll::Page
def destination(dest)
dest - The String path to the destination dir.
Obtain destination path.
def destination(dest) @destination ||= {} @destination[dest] ||= begin path = site.in_dest_dir(dest, URL.unescape_path(url)) path = File.join(path, "index") if url.end_with?("/") path << output_ext unless path.end_with? output_ext path end end