diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0f2eb70c..7f4efe8b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,9 @@ on: # Allow rebuilding/redeploying the web manually workflow_dispatch: schedule: - # Rebuild the web periodically at 22:00 UTC to update team API contents and Rust version + # Rebuild the web periodically at 22:00 UTC to update team API contents and Rust version. + # Time must be kept in sync with the `autoupdate` parameter in + # `templates/components/footer.html.hbs`. - cron: '0 22 * * *' env: RUST_BACKTRACE: 1 diff --git a/locales/en-US/common.ftl b/locales/en-US/common.ftl index c42ecb3a..360b9854 100644 --- a/locales/en-US/common.ftl +++ b/locales/en-US/common.ftl @@ -60,6 +60,8 @@ footer-github-alt = GitHub footer-attribution = Maintained by the Rust Team. See a bug? File an issue! +footer-autoupdate = Web site built every day at { $autoupdate } + footer-old-site = Looking for the previous website? ## what/index.hbs diff --git a/locales/fr/common.ftl b/locales/fr/common.ftl index 00303049..b5e60ee2 100644 --- a/locales/fr/common.ftl +++ b/locales/fr/common.ftl @@ -51,6 +51,7 @@ footer-youtube-alt = Twitter footer-alt-youtube = Logo YouTube footer-github-alt = GitHub footer-attribution = Maintenu par l’équipe de Rust. Vous avez trouvé une erreur ? Envoyez-nous une correction! +footer-autoupdate = Site mis à jour quotidiennement à { $autoupdate } footer-old-site = Vous cherchez l'ancien site web ? ## what/index.hbs diff --git a/templates/components/footer.html.hbs b/templates/components/footer.html.hbs index dae0ca34..cb0f41a6 100644 --- a/templates/components/footer.html.hbs +++ b/templates/components/footer.html.hbs @@ -49,6 +49,7 @@
{{fluent "footer-attribution"}}
+{{#fluent "footer-autoupdate"}}{{#fluentparam "autoupdate"}}22:00 UTC{{/fluentparam}}{{/fluent}}
{{fluent "footer-old-site"}}