now
Syntax
now
See time.Time
.
For example, building your site on June 24, 2017 with the following templating:
<div>
<small>© {{ now.Format "2006"}}</small>
</div>
Which will produce the following:
<div>
<small>© 2017</small>
</div>
The above example uses the .Format
function, which page includes a full listing of date formatting using Golang’s layout string.