@utils global variable

 The @utils global variable has been create to store useful values. 

At this moment @utils contains only two fields:

currentYear which can be used to create footers which will contain proper year value after the website sync:

Copyright by X {{@utils.currentYear}}. All rights reserved.

buildDate - it returns the build timestamp, which can be used to generate the human-readable date along with the date helper:

{{date @utils.buildDate 'YYYY-MM-DD HH:mm'}}

Create your first website with Publii

Join thousands of creators who chose independence. Create content locally and publish lightning-fast, secure websites on your own terms.

Download Publii

Free and open source. Windows, macOS and Linux.

Read the getting started guide