Date/Time of rendering as a variable

Hi

is there a way to derive the date and time when a site is built by hugo and use this in a template?
E. g. when I generate a sitemap as html for the user to see the structure of the whole site I want to have the “last updated: 20xx-xx-xx at xx:xx” string on that page/in the template of that page to automatically update each time I have hugo updated/rendered my site.

You can use the now template func.

1 Like

Thanks a lot - works …