Skip to content

Instantly share code, notes, and snippets.

@sauttefk
Last active July 16, 2019 13:22
Show Gist options
  • Save sauttefk/65071cd1d60f0e42d646 to your computer and use it in GitHub Desktop.
Save sauttefk/65071cd1d60f0e42d646 to your computer and use it in GitHub Desktop.
Output current year in Copyright line
<f:if condition="{settings.disableCopyright} != '1'">
&copy; {settings.copyrightStart}-<f:format.date format="Y">{v:system.timestamp()}</f:format.date> <a href="{settings.copyrightLink}" target="_blank">{settings.copyrightName}</a>
</f:if>
@shm-sl
Copy link

shm-sl commented Jul 16, 2019

<f:format.date date="now" format="Y" /> also works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment