Use export variables for site meta

This commit is contained in:
Helen Chong 2024-07-19 09:25:30 +08:00
parent 1c2522ba28
commit e4d0ed94c1
1 changed files with 11 additions and 13 deletions

View File

@ -1,13 +1,11 @@
export default { export const siteName = "Leilukin's Hub";
siteName: "Leilukin's Hub", export const siteDomain = "leilukin.com";
siteUrl: "https://leilukin.com" || "http://localhost:8080", export const siteUrl = "https://" + siteDomain || "http://localhost:8080";
siteDomain: "leilukin.com", export const siteAuthor = {
siteLocale: "en_MY",
siteLanguage: "en",
siteDescription: "Leilukin's personal website.",
siteAuthor: {
name: "Leilukin", name: "Leilukin",
email: "contact@leilukin.com", email: "contact@leilukin.com",
url: () => this.siteUrl + "/about" url: siteUrl + "/about"
} };
} export const siteLocale = "en_MY";
export const siteLanguage = "en";
export const siteDescription = siteAuthor.name + "'s personal website.";