mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
chore(ci): eslint + prettier → biome (#325)
This commit is contained in:
@@ -6,14 +6,7 @@
|
||||
*/
|
||||
|
||||
import type { CollectionEntry } from 'astro:content';
|
||||
import type {
|
||||
BlogPosting,
|
||||
CollectionPage,
|
||||
Person,
|
||||
ProfilePage,
|
||||
TechArticle,
|
||||
WithContext,
|
||||
} from 'schema-dts';
|
||||
import type { BlogPosting, CollectionPage, Person, ProfilePage, TechArticle, WithContext } from 'schema-dts';
|
||||
|
||||
/**
|
||||
* Create a TechArticle schema for documentation pages.
|
||||
@@ -92,7 +85,7 @@ export function createBlogPostingSchema(params: {
|
||||
author.data.socialLinks.website,
|
||||
].filter(Boolean) as string[],
|
||||
}),
|
||||
}),
|
||||
})
|
||||
),
|
||||
publisher: {
|
||||
'@type': 'Organization',
|
||||
@@ -214,7 +207,7 @@ export function createProfilePageSchema(params: {
|
||||
}),
|
||||
// Include authored articles
|
||||
...(params.posts.length > 0 && {
|
||||
publishedWorks: params.posts.map(post => ({
|
||||
publishedWorks: params.posts.map((post) => ({
|
||||
'@type': 'BlogPosting',
|
||||
headline: post.data.title,
|
||||
url: `${params.siteUrl}blog/${post.id}`,
|
||||
|
||||
Reference in New Issue
Block a user