mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(site): search (#165)
This commit is contained in:
@@ -25,6 +25,7 @@ export function createTechArticleSchema(params: {
|
||||
updatedDate?: Date;
|
||||
wordCount?: number;
|
||||
readingTime?: number;
|
||||
articleSection?: string;
|
||||
}): WithContext<TechArticle> {
|
||||
return {
|
||||
'@context': 'https://schema.org',
|
||||
@@ -35,6 +36,7 @@ export function createTechArticleSchema(params: {
|
||||
...(params.updatedDate && { dateModified: params.updatedDate.toISOString() }),
|
||||
...(params.wordCount && { wordCount: params.wordCount }),
|
||||
...(params.readingTime && { timeRequired: `PT${params.readingTime}M` }),
|
||||
...(params.articleSection && { articleSection: params.articleSection }),
|
||||
author: {
|
||||
'@type': 'Organization',
|
||||
name: 'Video.js',
|
||||
|
||||
Reference in New Issue
Block a user