11ty Year Shortcode
This is the tiniest 11ty shortcode I can come up with while gaining experience for all the potentially weird things I'm going to have to do for these new site migrations.
Lots of places we need a copyright or something similar where we just need the current year when the page was generated.
_1tty/shortcodes/year.js
module.exports = function() {
return `${new Date().getFullYear()}`;
}
and in the markdown the name of the sortcode needs to appear bookended by moustaches.