-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from shaniit-org/dev
update on precommit ignore for fly
- Loading branch information
Showing
6 changed files
with
106 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,69 @@ | ||
import { FaHome } from 'react-icons/fa'; | ||
|
||
export default { | ||
id: 'homePage', | ||
icon: FaHome, | ||
title: 'Home Page', | ||
name: 'homePage', | ||
type: 'document', | ||
fields: [ | ||
{ | ||
title: 'SEO', | ||
name: 'seo', | ||
type: 'seo' | ||
}, | ||
{ | ||
title: 'Sections', | ||
name: 'sections', | ||
type: 'array', | ||
of: [ | ||
{ | ||
name: 'Hero', | ||
type: 'homePage.hero' | ||
}, | ||
{ | ||
title: 'Pinned News', | ||
name: 'Highlight', | ||
type: 'reference', | ||
to: [ | ||
{ | ||
type: 'news' | ||
} | ||
] | ||
}, | ||
{ | ||
name: 'News', | ||
type: 'homePage.news' | ||
}, | ||
{ | ||
name: 'Donate', | ||
title: 'Donate', | ||
type: 'banner' | ||
}, | ||
{ | ||
name: 'Events', | ||
type: 'homePage.events' | ||
} | ||
] | ||
} | ||
], | ||
preview: { | ||
select: { | ||
title: 'seo.title', | ||
media: 'seo.ogImage' | ||
}, | ||
/** | ||
* @param {import('sanity').PreviewProps} props | ||
*/ | ||
prepare({ title, media, subtitle }) { | ||
return { | ||
title: title || 'Home Page', | ||
subtitle: subtitle, | ||
media | ||
}; | ||
} | ||
} | ||
id: 'homePage', | ||
icon: FaHome, | ||
title: 'Home Page', | ||
name: 'homePage', | ||
type: 'document', | ||
fields: [ | ||
{ | ||
title: 'SEO', | ||
name: 'seo', | ||
type: 'seo' | ||
}, | ||
{ | ||
title: 'Sections', | ||
name: 'sections', | ||
type: 'array', | ||
of: [ | ||
{ | ||
name: 'Hero', | ||
type: 'homePage.hero' | ||
}, | ||
{ | ||
title: 'Highlight', | ||
name: 'Highlight', | ||
type: 'reference', | ||
to: [ | ||
{ | ||
type: 'news' | ||
}, | ||
{ | ||
type: 'event' | ||
} | ||
] | ||
}, | ||
{ | ||
name: 'News', | ||
type: 'homePage.news' | ||
}, | ||
{ | ||
name: 'Donate', | ||
title: 'Donate', | ||
type: 'banner' | ||
}, | ||
{ | ||
name: 'Events', | ||
type: 'homePage.events' | ||
} | ||
] | ||
} | ||
], | ||
preview: { | ||
select: { | ||
title: 'seo.title', | ||
media: 'seo.ogImage' | ||
}, | ||
/** | ||
* @param {import('sanity').PreviewProps} props | ||
*/ | ||
prepare({ title, media, subtitle }) { | ||
return { | ||
title: title || 'Home Page', | ||
subtitle: subtitle, | ||
media | ||
}; | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters