Open jvanulde opened 1 year ago
Thanks @jvanulde for the heads up!
RiskProfiler v1.1.0 has just been deployed on www.riskprofiler.ca, so the year has automatically been updated to 2023.
The copyright year is found in the WordPress template named "Footer" in a "paragraph" with the following content:
© [timestamp format="Y"] RiskProfiler. All rights reserved. [Terms & Conditions](https://www.canada.ca/en/transparency/terms.html)
so it already inserts the current year at the time of dynamic page load, i.e. when Simply Static export is run.
The Google basemap attribution, on the other hand, is inside JavaScript, so I just changed it from the previously hardcoded 2022
to `new Date().getFullYear().
But yeah, I am a bit hesitant to use JavaScript for © 2023 RiskProfiler.
, but perhaps we could somehow automate a Simply Static export and AWS S3 upload on New Year's Day?
Currently:
© 2022 RiskProfiler. All rights reserved.
Should be:
© 2023 RiskProfiler. All rights reserved.
Perhaps look at a way to insert the current year through a script.