sass-site/helpers/sass_helpers.rb

21 lines
372 B
Ruby
Raw Normal View History

2013-10-09 06:30:53 -04:00
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