A small update to note down.

There are many ways of displaying copyright in a site. I’ve chosen to use a date range for this purpose.

The first date of the range is a string "2022", then it can be hardcoded. The second date of the range will change every year, so I used Liquid for that number to automatically update.

Liquid’s filter date can be used with the special word "now" to get the current time. I use the strftime syntax "%Y" for showing only the current year.

© 2022-{{'now' | date: "%Y"}} Martin Poncio

The code was added to footer.html, following the process I outlined in my post about editing minima.