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"> <details class="group">
<summary class="flex justify-between items-center font-medium cursor-pointer list-none"> <summary class="flex justify-between items-center font-medium cursor-pointer list-none" itemprop="mainEntity"
<span class="text-orange-400">{{$question}}</span> 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"> <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> </svg>
</span> </span>
</summary> </summary>
<p class="text-gray-100 mt-3"> <div itemprop="acceptedAnswer" itemscope itemtype="https://schema.org/Answer">
{!! $answer !!} <p class="text-gray-100 mt-3" itemprop="text">
</p> {!! $answer !!}
</p>
</div>
</details> </details>
</div> </div>