apricote.de/layouts/shortcodes/years-till-today.html

2 lines
108 B
HTML

{{ $diff := now.Sub (time (.Get 0)) }} {{ $years := div (div $diff.Hours 24) 365
}} {{ math.Floor $years }}