class Tumblargh::Renderer::Blocks::Date

Rendered for all posts. Always wrap dates in this block so they will be properly hidden on non-post pages.

Constants

MAP

Public Instance Methods

day_of_month_suffix() click to toggle source
# File lib/tumblargh/renderer/blocks/dates.rb, line 32
def day_of_month_suffix
  day_of_month.ordinalize
end
short_year() click to toggle source
# File lib/tumblargh/renderer/blocks/dates.rb, line 40
def short_year
  year.to_s[2..4]
end
time_ago() click to toggle source
# File lib/tumblargh/renderer/blocks/dates.rb, line 44
def time_ago
  # ActionView::Helpers::DateHelper::time_ago_in_words(date)
  "1 day ago"
end
year() click to toggle source
# File lib/tumblargh/renderer/blocks/dates.rb, line 36
def year
  date.year
end