refactor: Update FAQ dropdown to include schema.org markup (pr #58 from rico-vz/FAQSEO)

refactor: Update FAQ dropdown to include schema.org markup
This commit is contained in:
Rico
2023-12-14 14:37:41 +01:00
committed by GitHub

View File

@@ -1,14 +1,19 @@
<div class="py-5">
<div class="py-5" itemscope itemtype="https://schema.org/QAPage">
<details class="group">
<summary class="flex justify-between items-center font-medium cursor-pointer list-none">
<span class="text-orange-400">{{$question}}</span>
<summary class="flex justify-between items-center font-medium cursor-pointer list-none" itemprop="mainEntity"
itemscope itemtype="https://schema.org/Question">
<span class="text-orange-400" itemprop="name">{{$question}}</span>
<span class="transition text-orange-400 group-open:rotate-180">
<svg fill="none" height="24" shape-rendering="geometricPrecision" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" viewBox="0 0 24 24" width="24"><path d="M6 9l6 6 6-6"></path>
<svg fill="none" height="24" shape-rendering="geometricPrecision" stroke="currentColor"
stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" viewBox="0 0 24 24" width="24"><path
d="M6 9l6 6 6-6"></path>
</svg>
</span>
</summary>
<p class="text-gray-100 mt-3">
{!! $answer !!}
</p>
<div itemprop="acceptedAnswer" itemscope itemtype="https://schema.org/Answer">
<p class="text-gray-100 mt-3" itemprop="text">
{!! $answer !!}
</p>
</div>
</details>
</div>