Skip to content

Commit

Permalink
Fix duplicate FAQPage field for SEO
Browse files Browse the repository at this point in the history
  • Loading branch information
martignoni committed Aug 13, 2023
1 parent 803cff2 commit c8ac42a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions layouts/_default/faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
<div class="faq-group" id="faq-group-{{ .id }}">
<h4 id="{{ .id }}">{{ .name }}</h4>
{{ range .items }}
<details itemscope itemprop="mainEntity" itemtype="https://schema.org/Question">
<summary itemprop="name" id="{{ .question | anchorize }}">{{ .question }}<a href="#{{ .question | anchorize }}" class="anchor-faq" aria-hidden="true"><i class="fa fa-link fa-flip-horizontal"></i></a></summary>
<div class="faq-content" itemscope itemprop="acceptedAnswer" itemtype="https://schema.org/Answer">
<div itemprop="text">{{ .answer | markdownify }}</div>
<details>
<summary id="{{ .question | anchorize }}">{{ .question }}<a href="#{{ .question | anchorize }}" class="anchor-faq" aria-hidden="true"><i class="fa fa-link fa-flip-horizontal"></i></a></summary>
<div class="faq-content">
<div>{{ .answer | markdownify }}</div>
</div>
</details>
{{ end }}
Expand Down

0 comments on commit c8ac42a

Please sign in to comment.