def path
      # Static file is from a collection inside custom collections directory
      if !@collection.nil? && !@site.config["collections_dir"].empty?
        File.join(*[@base, @site.config["collections_dir"], @dir, @name].compact)
      else
        File.join(*[@base, @dir, @name].compact)
      end
    end
def path
      # Static file is from a collection inside custom collections directory
      if !@collection.nil? && !@site.config["collections_dir"].empty?
        File.join(*[@base, @site.config["collections_dir"], @dir, @name].compact)
      else
        File.join(*[@base, @dir, @name].compact)
      end
    end
Initialize a new StaticFile.

 site - The Site.
 base - The String path to the <source>.
 dir  - The String path between <source> and the file.
 name - The String filename of the file.
 rubocop: disable ParameterLists
 rubocop: enable ParameterLists
 Returns source file path.