mirror of
https://github.com/danog/sass-site.git
synced 2025-01-22 13:51:46 +01:00
21 lines
372 B
Ruby
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
|