forked from a11yproject/a11yproject.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·33 lines (27 loc) · 1.07 KB
/
index.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
---
layout: archives
description: A community-driven effort to make web accessibility easier.
---
<nav class="toc-wrap toc-long" aria-labelledby="toc_title">
<h2 id="toc_title" class="toc-title">Categories</h2>
<ul class="toc">
{% for category in site.categories %}
{% assign title = category.first %}
<li><a class="{{ title | capitalize | replace:' ','-' }}" href="#{{ title | capitalize | replace:' ','-' }}">{{ title | capitalize }}</a></li>
{% endfor %}
</ul>
</nav>
{% for category in site.categories %}
{% assign title = category.first %}
{% assign posts = category.last %}
<section id="{{ title | capitalize | replace:' ','-' }}" class="article-section" tabindex="-1">
<h2 class="article-section__title">{{ title | capitalize }}</h2>
<ul class="article-section__content excerpt-list">
{% for post in posts %}
<li>
<h3 class="excerpt-list__title"><a href="{{ post.url }}">{{ post.title }}</a></h3>
{% if post.description %}<p>{{ post.description }}</p>{% endif %}
</li>
{% endfor %}
</section>
{% endfor %}