I am Hack Sparrow
Captain of the Internets.

Node.js / Jade – Dynamic Copyright Year

Do you hate it when you forget to update the copyright year on the footer of your website?

A solution to outdated year info in copyright notice is to generate the year dynamically. Here is how to do that in Node.js with Jade:

p Copyright © #{new Date().getFullYear()} Hack Sparrow

There you go, self-aware copyright year notices. No more outdated years anymore!

3 Responses to “Node.js / Jade – Dynamic Copyright Year”

  1. Sergey says:

    What about your Copyright Year?!

  2. Captain says:

    Hahaha! I know, bro. It’s a WordPress site, will update it soon.

  3. david says:

    it seems to be fixed now.

Make a Comment