def resource_path
      if is_a?(Jekyll::Document) && draft?
        "/#{relative_path.sub(%r!\A_!, "")}"
      elsif is_a?(Jekyll::Document)
        "/collections/#{relative_path.sub(%r!\A_!, "")}"
      elsif is_a?(Jekyll::Collection)
        "/collections/#{label}"
      elsif is_a?(JekyllAdmin::DataFile)
        "/data/#{relative_path}"
      elsif is_a?(Jekyll::StaticFile)
        "/static_files/#{relative_path}"
      elsif is_a?(Jekyll::Page)
        "/pages/#{relative_path}"
      end
    end
def resource_path
      if is_a?(Jekyll::Document) && draft?
        "/#{relative_path.sub(%r!\A_!, "")}"
      elsif is_a?(Jekyll::Document)
        "/collections/#{relative_path.sub(%r!\A_!, "")}"
      elsif is_a?(Jekyll::Collection)
        "/collections/#{label}"
      elsif is_a?(JekyllAdmin::DataFile)
        "/data/#{relative_path}"
      elsif is_a?(Jekyll::StaticFile)
        "/static_files/#{relative_path}"
      elsif is_a?(Jekyll::Page)
        "/pages/#{relative_path}"
      end
    end
URL path relative to `_api/` to retreive the given resource via the API
 Note: we can't use a case statement here, because === doesn't like includes