Get The Current Year In Jekyll
Like many others, I put a copyright notice with the current year at the bottom of the page in my websites.
In my personal website, I noticed that the date stucks and doesn’t automatically update on every year. So, I opened the template in the _include folder and I added this code to the footer section:
{{ 'now' | date: "%Y" }}
And it’s worked!