Repository navigation
Expand file tree
/
Copy pathdebug-data.html
More file actions
59 lines (55 loc) · 1.75 KB
/
Copy pathdebug-data.html
File metadata and controls
59 lines (55 loc) · 1.75 KB
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
---
layout: default
---
<div class="container mx-auto px-4 py-8">
<h1 class="text-3xl font-bold mb-6">Data Structure Debug Page</h1>
<section class="mb-8 p-4 bg-gray-100 rounded">
<h2 class="text-xl font-semibold mb-4">Site Data Structure</h2>
<pre class="whitespace-pre-wrap bg-white p-4 rounded border">
{% for item in site.data %}
Key: {{ item[0] }}
{% if item[0] == 'en-US' or item[0] == 'pt-BR' %}
{% for subitem in item[1] %}
- Subkey: {{ subitem[0] }}
{% endfor %}
{% endif %}
{% endfor %}
</pre>
</section>
<section class="mb-8 p-4 bg-gray-100 rounded">
<h2 class="text-xl font-semibold mb-4">Menu Data (en-US)</h2>
<pre class="whitespace-pre-wrap bg-white p-4 rounded border">
{% if site.data.en-US %}
EN-US data exists
{% if site.data.en-US.menu %}
Menu data exists
{% for item in site.data.en-US.menu %}
- {{ item.title }} ({{ item.path }})
{% endfor %}
{% else %}
No menu data found in en-US
{% endif %}
{% else %}
No en-US data found
{% endif %}
</pre>
</section>
<section class="p-4 bg-gray-100 rounded">
<h2 class="text-xl font-semibold mb-4">Menu Data (pt-BR)</h2>
<pre class="whitespace-pre-wrap bg-white p-4 rounded border">
{% if site.data.pt-BR %}
PT-BR data exists
{% if site.data.pt-BR.menu %}
Menu data exists
{% for item in site.data.pt-BR.menu %}
- {{ item.title }} ({{ item.path }})
{% endfor %}
{% else %}
No menu data found in pt-BR
{% endif %}
{% else %}
No pt-BR data found
{% endif %}
</pre>
</section>
</div>