Method: Jekyll::Page#destination
- Defined in:
- lib/ngage/jekyll/page.rb
#destination(dest) ⇒ Object
Obtain destination path.
dest - The String path to the destination dir.
Returns the destination file path String.
155 156 157 158 159 160 |
# File 'lib/ngage/jekyll/page.rb', line 155 def destination(dest) 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 |