mirror of
https://github.com/danog/sass-site.git
synced 2025-01-22 13:51:46 +01:00
address review
This commit is contained in:
parent
55be6e9ee2
commit
fdb2edf3f8
@ -36,8 +36,8 @@ module.exports = (eleventyConfig) => {
|
||||
typogrify.typogrify(mdown.renderInline(content)),
|
||||
);
|
||||
|
||||
eleventyConfig.addLiquidShortcode('yearsAgo', () => {
|
||||
return formatDistanceToNow(new Date('Tue Nov 28 19:43:58 2006 +0000'));
|
||||
eleventyConfig.addLiquidFilter('formatDistanceToNow', (date) => {
|
||||
return formatDistanceToNow(new Date(date));
|
||||
});
|
||||
|
||||
eleventyConfig.addLiquidFilter('typogr', (content) =>
|
||||
|
@ -17,8 +17,9 @@ eleventyComputed:
|
||||
keep up, but stay ahead.
|
||||
- header: Mature
|
||||
body: |
|
||||
Sass has been actively supported for {% yearsAgo %} by its loving Core
|
||||
Team.
|
||||
Sass has been actively supported for
|
||||
{{ 'Tue Nov 28 19:43:58 2006 +0000' | formatDistanceToNow }} by its
|
||||
loving Core Team.
|
||||
- header: Industry Approved
|
||||
body: |
|
||||
Over and over again, the industry is choosing Sass as the premier CSS
|
||||
|
Loading…
x
Reference in New Issue
Block a user