From e4d0ed94c17e54d1cdd73e2bff33de41fea7144a Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Fri, 19 Jul 2024 09:25:30 +0800 Subject: [PATCH] Use export variables for site meta --- src/_data/sitemeta.js | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/src/_data/sitemeta.js b/src/_data/sitemeta.js index a043585c..5772bd42 100644 --- a/src/_data/sitemeta.js +++ b/src/_data/sitemeta.js @@ -1,13 +1,11 @@ -export default { - siteName: "Leilukin's Hub", - siteUrl: "https://leilukin.com" || "http://localhost:8080", - siteDomain: "leilukin.com", - siteLocale: "en_MY", - siteLanguage: "en", - siteDescription: "Leilukin's personal website.", - siteAuthor: { - name: "Leilukin", - email: "contact@leilukin.com", - url: () => this.siteUrl + "/about" - } -} +export const siteName = "Leilukin's Hub"; +export const siteDomain = "leilukin.com"; +export const siteUrl = "https://" + siteDomain || "http://localhost:8080"; +export const siteAuthor = { + name: "Leilukin", + email: "contact@leilukin.com", + url: siteUrl + "/about" +}; +export const siteLocale = "en_MY"; +export const siteLanguage = "en"; +export const siteDescription = siteAuthor.name + "'s personal website."; \ No newline at end of file