From 0dac40d0f3dc2dba76341f4fb46b025166b7b011 Mon Sep 17 00:00:00 2001 From: Cvr421 Date: Sun, 17 Mar 2024 15:40:55 +0530 Subject: [PATCH] updating copyright date automatically Signed-off-by: Cvr421 --- website/docusaurus.config.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index bfd0acfb..7a757197 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -1,4 +1,10 @@ /** @type {import('@docusaurus/types').DocusaurusConfig} */ + +function generateCopyright() { + const currentYear = new Date().getFullYear(); + return `Copyrights © ${currentYear} moja global.`; +} + module.exports = { title: `Moja Global Community`, tagline: `Learn about moja global's projects and join our ever-growing community`, @@ -228,7 +234,7 @@ module.exports = { ], }, ], - copyright: `Copyright © ${new Date().getFullYear()} moja global.`, + copyright: generateCopyright(), }, image: 'https://community.moja.global/img/logo.png', metadatas: [