mirror of
https://github.com/danog/sass-site.git
synced 2024-11-27 04:24:50 +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)),
|
typogrify.typogrify(mdown.renderInline(content)),
|
||||||
);
|
);
|
||||||
|
|
||||||
// Shortcodes...
|
// Filters...
|
||||||
eleventyConfig.addLiquidShortcode('yearsAgo', () => {
|
eleventyConfig.addLiquidFilter('formatDistanceToNow', (date) => {
|
||||||
return formatDistanceToNow(new Date('Tue Nov 28 19:43:58 2006 +0000'));
|
return formatDistanceToNow(new Date(date));
|
||||||
});
|
});
|
||||||
|
|
||||||
// Filters...
|
|
||||||
eleventyConfig.addLiquidFilter('markdown', (content) =>
|
eleventyConfig.addLiquidFilter('markdown', (content) =>
|
||||||
typogrify.typogrify(mdown.render(content)),
|
typogrify.typogrify(mdown.render(content)),
|
||||||
);
|
);
|
||||||
|
@ -17,8 +17,9 @@ eleventyComputed:
|
|||||||
keep up, but stay ahead.
|
keep up, but stay ahead.
|
||||||
- header: Mature
|
- header: Mature
|
||||||
body: |
|
body: |
|
||||||
Sass has been actively supported for {% yearsAgo %} by its loving Core
|
Sass has been actively supported for
|
||||||
Team.
|
{{ 'Tue Nov 28 19:43:58 2006 +0000' | formatDistanceToNow }} by its
|
||||||
|
loving Core Team.
|
||||||
- header: Industry Approved
|
- header: Industry Approved
|
||||||
body: |
|
body: |
|
||||||
Over and over again, the industry is choosing Sass as the premier CSS
|
Over and over again, the industry is choosing Sass as the premier CSS
|
||||||
|
Loading…
Reference in New Issue
Block a user