forked from cors-errors/cors-errors.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
faq.html
63 lines (59 loc) · 1.87 KB
/
faq.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
layout: page
title: CORS FAQ
permalink: /faq
css-class: faq
html-meta: itemscope itemtype="https://schema.org/FAQPage"
---
<h1>CORS FAQ</h1>
<nav class="page-index">
<ul>
{% for collection in site.collections %}
{% if collection.label == "faq" %}
{% for file in collection.order %}
{% for doc in collection.docs %}
{% if doc.path contains file %}
<li><a href="/faq#{{ doc.path | replace: "_faq/", "" | replace: ".md", "" }}">{{ doc.question | smartify }}</a></li>
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
{% endfor %}
</ul>
</nav>
<!-- The 'order' feature was only added in Jekyll 4.0.0, so we have to implement it manually in earlier versions -->
{% for collection in site.collections %}
{% if collection.label == "faq" %}
{% for file in collection.order %}
{% for doc in collection.docs %}
{% if doc.path contains file %}
<section id="{{ doc.path | replace: "_faq/", "" | replace: ".md", "" }}" itemscope itemprop="mainEntity" itemtype="https://schema.org/Question">
<h3>
<a href="/faq#{{ doc.path | replace: "_faq/", "" | replace: ".md", "" }}"><span itemprop="name">{{ doc.question | smartify }}</span></a>
</h3>
<div itemscope itemprop="acceptedAnswer" itemtype="https://schema.org/Answer">
<div class="answer-body" itemprop="text">{{ doc.content }}</div>
{% if doc.related %}
<div class="related-questions">
<hr>
<h4>Related</h4>
<ul>
{% for related in doc.related %}
<li>{% include faq-link.html faq=related %}</li>
{% endfor %}
</ul>
</div>
{% endif %}
</div>
</section>
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
{% endfor %}
<section>
<p>
You can suggest improvements to this page via
<a href="{{ site.repository }}/issues" class="external" target="_blank">GitHub</a>.
</p>
</section>