Skip to content

Commit

Permalink
chore: remove page key
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Jan 31, 2024
1 parent 92307b7 commit c3ba0cb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions packages/core/src/page/createPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ export const createPage = async (
const page: Page = {
// page data
data: {
key,
path,
title,
lang,
Expand All @@ -108,7 +107,6 @@ export const createPage = async (
},

// base fields
key,
path,
title,
lang,
Expand Down
9 changes: 0 additions & 9 deletions packages/shared/src/types/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@ import type { HeadConfig } from './head.js'
export interface PageBase<
ExtraPageFrontmatter extends Record<any, any> = Record<string, unknown>,
> {
/**
* Identifier of the page
*
* Will also be used as the component name
*
* @example 'v-foobar'
*/
key: string

/**
* Route path of the page
*
Expand Down

0 comments on commit c3ba0cb

Please sign in to comment.