Skip to content

Instantly share code, notes, and snippets.

@sivy
Created June 7, 2017 18:20
Show Gist options
  • Save sivy/b64c3929e5073ec78b40dae806df9037 to your computer and use it in GitHub Desktop.
Save sivy/b64c3929e5073ec78b40dae806df9037 to your computer and use it in GitHub Desktop.
module Jekyll
module Filters
module SignalLogFilters
def date_with_yc_year(date)
year = date.year
# puts year
yc_year = 105+(year-2003)
# puts yc_year
time(date).strftime("YC#{yc_year}.%m.%d")
end
end
end
end
Liquid::Template.register_filter(
Jekyll::Filters::SignalLogFilters
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment