year
In Shortcodes
Current-year shortcode for footer copyrights and similar.
import { currentYear } from '@allons-y/dashly/shortcodes/year';
currentYear()
Return the current four-digit year. Distinct from the year filter, which
extracts the year from a passed-in date.
Returns
number
Examples
// <p>© {% currentYear %} Acme Corp.</p>
// 2026
currentYear();