main
 1import type { SiteConfig } from "@/types/config.d.ts";
 2
 3export const SITE_CONFIG: SiteConfig = {
 4  website: "https://example.com",
 5  title: "Kerplunk",
 6  author: "John Doe",
 7  description: {
 8    en: "A static blog template.",
 9    "zh-CN": "一个静态博客模板。",
10  },
11  timeZone: "Etc/UTC",
12  locales: ["en", "zh-CN"],
13};
14
15export const DEFAULT_LOCALE = SITE_CONFIG.locales[0];
16
17const protocol = SITE_CONFIG.website.split("://")[0];
18const host = SITE_CONFIG.website.split("://")[1].split("/")[0];
19const basePath =
20  SITE_CONFIG.website.split(host).slice(1).join("/") || undefined;
21export const WEBSITE = {
22  protocol,
23  host,
24  basePath,
25};