From 1c9d8cdc1bea52030a4d6ca1ea1b6dca300e0d0c Mon Sep 17 00:00:00 2001 From: "soroush.asadi" Date: Fri, 26 Jun 2026 01:02:44 +0330 Subject: [PATCH] feat(seo): FAQPage structured data on blog posts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Extracts Q/A pairs from the post body (an

ending in the Persian question mark ؟ followed by the next

) and emits FAQPage JSON-LD in . Makes posts with FAQ sections eligible for FAQ rich results in Google. Non-question

headings are ignored. Verified: post with 3 h3s emits exactly 2 Question entries (the plain heading excluded), valid escaped JSON. Co-Authored-By: Claude Opus 4.8 --- DrSousan.Api/Pages/Blog/Post.cshtml | 17 +++++++++++++++++ DrSousan.Api/Pages/Blog/Post.cshtml.cs | 26 ++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/DrSousan.Api/Pages/Blog/Post.cshtml b/DrSousan.Api/Pages/Blog/Post.cshtml index c7e400c..446d579 100644 --- a/DrSousan.Api/Pages/Blog/Post.cshtml +++ b/DrSousan.Api/Pages/Blog/Post.cshtml @@ -81,6 +81,23 @@ } + @if (Model.Faqs.Any()) + { + + } +