1. Add the code below into the before /body tag. Click to copy code.

    <script>
    	document.addEventListener("DOMContentLoaded", function() {
        	document.querySelector(".current-year").innerText = new Date().getFullYear()
        })
    </script>
    Click to copy code
  2. Add class "current-year" to text element you want to auto-update.

  3. Publish your site 😃

Cloneable built by @anthonyholiday