mirror of
https://github.com/khairul169/code-share.git
synced 2026-10-24 11:53:58 +07:00
feat: add project schema
This commit is contained in:
+4
-2
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user