chore: more context on dates

This commit is contained in:
Cory Dransfeldt 2024-05-03 16:36:15 -07:00
parent e3e24f2499
commit f034ae2584
No known key found for this signature in database
3 changed files with 11 additions and 2 deletions

View file

@ -12,6 +12,7 @@ import filters from './config/filters/index.js'
import { slugifyString } from './config/utils/index.js'
import { minifyJsComponents } from './config/events/index.js'
import { searchIndex, tagList, postStats, tagsSortedByCount, links, tagMap, booksToRead } from './config/collections/index.js'
import { DateTime } from 'luxon'
// load .env
import dotenvFlow from 'dotenv-flow'
@ -116,6 +117,7 @@ export default async function (eleventyConfig) {
// shortcodes
eleventyConfig.addShortcode('appVersion', () => appVersion)
eleventyConfig.addShortcode('currentYear', () => DateTime.now().year)
// transforms
eleventyConfig.addTransform('html-minify', (content, path) => {