mirror of
https://github.com/danog/sass-site.git
synced 2024-11-26 20:14:53 +01:00
Merge branch 'homepage' into get-involved-community-guideline-pages
* homepage: address review
This commit is contained in:
commit
30d69be72e
@ -37,12 +37,11 @@ module.exports = (eleventyConfig) => {
|
||||
typogrify.typogrify(mdown.renderInline(content)),
|
||||
);
|
||||
|
||||
// Shortcodes...
|
||||
eleventyConfig.addLiquidShortcode('yearsAgo', () => {
|
||||
return formatDistanceToNow(new Date('Tue Nov 28 19:43:58 2006 +0000'));
|
||||
// Filters...
|
||||
eleventyConfig.addLiquidFilter('formatDistanceToNow', (date) => {
|
||||
return formatDistanceToNow(new Date(date));
|
||||
});
|
||||
|
||||
// Filters...
|
||||
eleventyConfig.addLiquidFilter('markdown', (content) =>
|
||||
typogrify.typogrify(mdown.render(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…
Reference in New Issue
Block a user