[FEAT] Clean code
This commit is contained in:
@@ -24,7 +24,6 @@ export interface FAQItem {
|
||||
}
|
||||
|
||||
export function useStructuredData() {
|
||||
// Organization Schema
|
||||
const addOrganizationSchema = () => {
|
||||
const schema = {
|
||||
'@context': 'https://schema.org',
|
||||
@@ -46,7 +45,6 @@ export function useStructuredData() {
|
||||
});
|
||||
};
|
||||
|
||||
// WebSite Schema
|
||||
const addWebSiteSchema = () => {
|
||||
const schema = {
|
||||
'@context': 'https://schema.org',
|
||||
@@ -71,7 +69,6 @@ export function useStructuredData() {
|
||||
});
|
||||
};
|
||||
|
||||
// BlogPosting Schema
|
||||
const addBlogPostSchema = (post: BlogPostSchema) => {
|
||||
const schema = {
|
||||
'@context': 'https://schema.org',
|
||||
@@ -109,7 +106,6 @@ export function useStructuredData() {
|
||||
});
|
||||
};
|
||||
|
||||
// Breadcrumb Schema
|
||||
const addBreadcrumbSchema = (items: BreadcrumbItem[]) => {
|
||||
const schema = {
|
||||
'@context': 'https://schema.org',
|
||||
@@ -132,7 +128,6 @@ export function useStructuredData() {
|
||||
});
|
||||
};
|
||||
|
||||
// Blog List Schema
|
||||
const addBlogListSchema = (posts: BlogPostSchema[]) => {
|
||||
const schema = {
|
||||
'@context': 'https://schema.org',
|
||||
@@ -164,7 +159,6 @@ export function useStructuredData() {
|
||||
});
|
||||
};
|
||||
|
||||
// FAQ Schema
|
||||
const addFAQSchema = (faqs: FAQItem[]) => {
|
||||
const schema = {
|
||||
'@context': 'https://schema.org',
|
||||
|
||||
Reference in New Issue
Block a user