def cleaned_relative_path
      @cleaned_relative_path ||= begin
        cleaned = relative_path[0..-extname.length - 1]
        cleaned.gsub!(%r!\.*\z!, "")
        cleaned.sub!(@collection.relative_directory, "") if @collection
        cleaned
      end
    end
def cleaned_relative_path
      @cleaned_relative_path ||= begin
        cleaned = relative_path[0..-extname.length - 1]
        cleaned.gsub!(%r!\.*\z!, "")
        cleaned.sub!(@collection.relative_directory, "") if @collection
        cleaned
      end
    end
Similar to Jekyll::Document#cleaned_relative_path.
 Generates a relative path with the collection's directory removed when applicable
   and additionally removes any multiple periods in the string.

 NOTE: `String#gsub!` removes all trailing periods (in comparison to `String#chomp!`)

 Examples:
   When `relative_path` is "_methods/site/my-cool-avatar...png":
     cleaned_relative_path
     # => "/site/my-cool-avatar"

 Returns the cleaned relative path of the static file.