I've converted your old FAQ shortcode format to proper, SEO-friendly HTML with structured data (Schema.org markup).
[sc_fs_multi_faq headline-1="h4" question-1="..." answer-1="..." count="5" ...]
## Frequently Asked Questions
<div class="faq-section" itemscope itemtype="https://schema.org/FAQPage">
<div class="faq-item" itemscope itemprop="mainEntity" itemtype="https://schema.org/Question">
<h4 class="faq-question" itemprop="name">Question here?</h4>
<div class="faq-answer" itemscope itemprop="acceptedAnswer" itemtype="https://schema.org/Answer">
<div itemprop="text">
Answer here.
</div>
</div>
</div>
<!-- More FAQ items... -->
</div>
✅ 2021-02-02-is-powershell-worth-learning-2021.md - Manually converted with improved answers
I've created a Node.js script that will automatically convert all remaining files.
C:\dev\itblogpros
directorynode convert-faqs.js
The script will:
.md
files in the posts
directory[sc_fs_multi_faq]
shortcodesIf you prefer to convert files manually or want to improve the answers like I did:
The FAQ sections will automatically use the existing styles from your style.css
:
.faq-section
- Container for all FAQs.faq-item
- Individual FAQ item.faq-question
- Question heading.faq-answer
- Answer containerThese styles are already in your CSS file, so the FAQs will look great out of the box!
After conversion:
npx @11ty/eleventy --serve
If you encounter any issues with the conversion or have questions, let me know!