sass-site/helpers/sass_helpers.rb
₍˄ุ.͡˳̫.˄ุ₎ 92f17202ec Lots of clean up.
2013-10-14 15:52:40 -04:00

21 lines
372 B
Ruby

module SassHelpers
def page_title
title = "Sass: "
if data.page.title
title << data.page.title
else
title << "CSS with Super Powers"
end
title
end
def copyright_years(start_year)
end_year = Date.today.year
if start_year == end_year
start_year.to_s
else
start_year.to_s + '-' + end_year.to_s
end
end
end