Skip to content

Commit e0813b3

Browse files
authored
fix: add name property to questions in FAQpage (#322)
1 parent 2db37c2 commit e0813b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/blocks/Questions/Questions.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const FaqMicrodataValues = {
1515
PageType: 'https://schema.org/FAQPage',
1616
QuestionType: 'https://schema.org/Question',
1717
QuestionProp: 'mainEntity',
18+
QuestionNameProp: 'name',
1819
QuestionTextProp: 'text',
1920
AnswerType: 'https://schema.org/Answer',
2021
AnswerProp: 'acceptedAnswer',
@@ -69,7 +70,7 @@ const QuestionsBlock = (props: QuestionsProps) => {
6970
className={b('item-title')}
7071
onClick={() => toggleItem(index)}
7172
>
72-
<HTML itemProp={FaqMicrodataValues.QuestionTextProp}>
73+
<HTML itemProp={FaqMicrodataValues.QuestionNameProp}>
7374
{itemTitle}
7475
</HTML>
7576
<ToggleArrow

0 commit comments

Comments
 (0)