Repository navigation
v1.0.0-beta.1
Pre-releaseMajor Changes
-
#16
eb5aaf9Thanks @castastrophe! - Breaking: theyearshortcode is nowcurrentYear. Shortcodes & filters share one namespace in Handlebars & 11ty.js, where the shortcode shadowed theyearfilter. Replace{% year %}with{% currentYear %}&shortcodes: { exclude: ["year"] }with["currentYear"]; a stale exclude emits a deprecation warning. Theyearfilter is unchanged.Filters now check their optional arguments. A present but wrongly typed argument throws a
DashlyArgumentErrornaming the filter, the parameter, & what arrived, instead of failing silently. Omitted arguments, nullish values, & the options object that Handlebars appends to every helper call fall back to defaults, soreadingTime,absoluteUrl,tags, & other filters with optional arguments now work in Handlebars.cleanForRSS&renderMarkdownstay async. They are documented as unsupported in Handlebars, whose helpers are synchronous.