Skip to content

Commit 1df24c6

Browse files
pelleclaude
andcommitted
Fix homepage to display all TAIPs with correct status filtering
- Updated index.html to filter TAIPs by actual status values (Final, Last Call, Review) - Added CSS styling for status-last-call class - Fixed Liquid template to handle spaces in status names using replace filter - All 16 TAIPs now display correctly organized by status 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 442fa24 commit 1df24c6

2 files changed

Lines changed: 16 additions & 11 deletions

File tree

assets/css/main.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,11 @@ footer {
345345
color: var(--color-secondary-fg);
346346
}
347347

348+
.status-last-call {
349+
background-color: #dbeafe;
350+
color: #1e40af;
351+
}
352+
348353
.status-review {
349354
background-color: #ffedd5;
350355
color: #9a3412;

index.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,33 +24,33 @@ <h2>Transaction Authorization Improvement Proposals (TAIPs)</h2>
2424

2525
<h3>Core TAIPs</h3>
2626
<div class="taips-grid">
27+
{% assign final_taips = site.pages | where_exp: "item", "item.path contains 'TAIPs/taip-'" | where: "status", "Final" | sort: 'taip' %}
28+
{% assign lastcall_taips = site.pages | where_exp: "item", "item.path contains 'TAIPs/taip-'" | where: "status", "Last Call" | sort: 'taip' %}
2729
{% assign review_taips = site.pages | where_exp: "item", "item.path contains 'TAIPs/taip-'" | where: "status", "Review" | sort: 'taip' %}
28-
{% assign accepted_taips = site.pages | where_exp: "item", "item.path contains 'TAIPs/taip-'" | where: "status", "Accepted" | sort: 'taip' %}
29-
{% assign draft_taips = site.pages | where_exp: "item", "item.path contains 'TAIPs/taip-'" | where: "status", "Draft" | sort: 'taip' %}
3030

31-
{% comment %} Display Accepted TAIPs first {% endcomment %}
32-
{% for taip in accepted_taips %}
31+
{% comment %} Display Final TAIPs first {% endcomment %}
32+
{% for taip in final_taips %}
3333
<div class="taip-card">
3434
<h4><a href="{{ taip.url | relative_url }}">TAIP-{{ taip.taip }}: {{ taip.title }}</a></h4>
35-
<span class="status-pill status-{{ taip.status | downcase }}">{{ taip.status }}</span>
35+
<span class="status-pill status-{{ taip.status | downcase | replace: ' ', '-' }}">{{ taip.status }}</span>
3636
<p>{{ taip.description | default: "Defines a standard component of the Transaction Authorization Protocol." }}</p>
3737
</div>
3838
{% endfor %}
3939

40-
{% comment %} Display Review TAIPs next {% endcomment %}
41-
{% for taip in review_taips %}
40+
{% comment %} Display Last Call TAIPs next {% endcomment %}
41+
{% for taip in lastcall_taips %}
4242
<div class="taip-card">
4343
<h4><a href="{{ taip.url | relative_url }}">TAIP-{{ taip.taip }}: {{ taip.title }}</a></h4>
44-
<span class="status-pill status-{{ taip.status | downcase }}">{{ taip.status }}</span>
44+
<span class="status-pill status-{{ taip.status | downcase | replace: ' ', '-' }}">{{ taip.status }}</span>
4545
<p>{{ taip.description | default: "Defines a standard component of the Transaction Authorization Protocol." }}</p>
4646
</div>
4747
{% endfor %}
4848

49-
{% comment %} Display Draft TAIPs last {% endcomment %}
50-
{% for taip in draft_taips %}
49+
{% comment %} Display Review TAIPs last {% endcomment %}
50+
{% for taip in review_taips %}
5151
<div class="taip-card">
5252
<h4><a href="{{ taip.url | relative_url }}">TAIP-{{ taip.taip }}: {{ taip.title }}</a></h4>
53-
<span class="status-pill status-{{ taip.status | downcase }}">{{ taip.status }}</span>
53+
<span class="status-pill status-{{ taip.status | downcase | replace: ' ', '-' }}">{{ taip.status }}</span>
5454
<p>{{ taip.description | default: "Defines a standard component of the Transaction Authorization Protocol." }}</p>
5555
</div>
5656
{% endfor %}

0 commit comments

Comments
 (0)