Merge branch 'homepage' into get-involved-community-guideline-pages

* homepage:
  address review
This commit is contained in:
Jonny Gerig Meyer 2023-01-27 12:26:46 -05:00
commit 30d69be72e
No known key found for this signature in database
GPG Key ID: FB602F738A872F7F
2 changed files with 6 additions and 6 deletions

View File

@ -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)),
);

View File

@ -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