class Jekyll::Drops::UrlDrop

def categories

def categories
  category_set = Set.new
  Array(@obj.data["categories"]).each do |category|
    category_set << category.to_s.downcase
  end
  category_set.to_a.join("/")
end

def collection

def collection
  @obj.collection.label
end

def day

def day
  @obj.date.strftime("%d")
end

def hour

def hour
  @obj.date.strftime("%H")
end

def i_day

def i_day
  @obj.date.strftime("%-d")
end

def i_month

def i_month
  @obj.date.strftime("%-m")
end

def minute

def minute
  @obj.date.strftime("%M")
end

def month

def month
  @obj.date.strftime("%m")
end

def name

def name
  Utils.slugify(@obj.basename_without_ext)
end

def second

def second
  @obj.date.strftime("%S")
end

def short_month

def short_month
  @obj.date.strftime("%b")
end

def short_year

def short_year
  @obj.date.strftime("%y")
end

def slug

def slug
  Utils.slugify(@obj.data["slug"]) || Utils.slugify(@obj.basename_without_ext)
end

def title

def title
  Utils.slugify(@obj.data["slug"], :mode => "pretty", :cased => true) ||
    Utils.slugify(@obj.basename_without_ext, :mode => "pretty", :cased => true)
end

def y_day

def y_day
  @obj.date.strftime("%j")
end

def year

def year
  @obj.date.strftime("%Y")
end