feat: add project schema

This commit is contained in:
2024-02-22 20:59:20 +00:00
parent b232410d83
commit d579c1b7c5
27 changed files with 338 additions and 147 deletions
+4 -2
View File
@@ -2,10 +2,12 @@ import type { PageContext } from "vike/types";
export function getPageMetadata(pageContext: PageContext) {
let title = pageContext.data?.title || pageContext.config.title;
title = title ? `${title} - Vike` : "Welcome to Vike";
title = title ? `${title} - CodeShare` : "Welcome to CodeShare";
const description =
pageContext.data?.description || pageContext.config.description || "";
pageContext.data?.description ||
pageContext.config.description ||
"Share your frontend result with everyone";
return { title, description };
}