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

View File

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