mirror of
https://github.com/Nezumi-2711/next-gdrive-index.git
synced 2026-09-22 20:01:36 +00:00
20 lines
665 B
TypeScript
20 lines
665 B
TypeScript
import config from "~/config/gIndex.config";
|
|
|
|
export function formatFooter(text: string[]): string {
|
|
return text
|
|
.join("\n")
|
|
.replaceAll("{{ year }}", new Date().getFullYear().toString())
|
|
.replaceAll(
|
|
"{{ repository }}",
|
|
"[Repository](https://github.com/mbaharip/next-gdrive-index)",
|
|
)
|
|
.replaceAll("{{ author }}", config.siteConfig.siteAuthor || "mbaharip")
|
|
.replaceAll("{{ version }}", config.version || "0.0.0")
|
|
.replaceAll("{{ siteName }}", config.siteConfig.siteName)
|
|
.replaceAll(
|
|
"{{ handle }}",
|
|
config.siteConfig.twitterHandle || "@__mbaharip__",
|
|
)
|
|
.replaceAll("{{ creator }}", "mbaharip");
|
|
}
|