module Jekyll::PolishDates

Constants

MONTHS
VERSION

Public Instance Methods

date_polish(date) click to toggle source
# File lib/jekyll/polish_dates.rb, line 20
def date_polish(date)
  day = time(date).strftime("%e")
  month = time(date).strftime("%m")
  year = time(date).strftime("%Y")

  day + ' ' + MONTHS[month] + ' ' + year
end