From 3a3be7e5a79026b6f1c2eb93f8af81178dc85cb6 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Tue, 26 Aug 2014 23:20:34 -0700 Subject: [PATCH] Add Site#in_dest_dir --- lib/jekyll/site.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/jekyll/site.rb b/lib/jekyll/site.rb index 76f2f780..5bf1fc09 100644 --- a/lib/jekyll/site.rb +++ b/lib/jekyll/site.rb @@ -98,6 +98,13 @@ module Jekyll Jekyll.sanitized_path(source, path) end + # Public: Prefix a given path with the destination directory. + # + # Returns a path which is prefixed with the destination directory. + def in_dest_dir(path) + Jekyll.sanitized_path(dest, path) + end + # The list of collections and their corresponding Jekyll::Collection instances. # If config['collections'] is set, a new instance is created for each item in the collection. # If config['collections'] is not set, a new hash is returned.