Download

@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'}}

What are you waiting for?

Start building your site today.

  1. 1 Download Publii
  2. 2 Write your content
  3. 3 Publish your site
Create website