new homepage layout

This commit is contained in:
⧉ infominer 2023-09-11 16:43:05 -04:00
parent 9ca5ea2f3c
commit d53fac2028
2 changed files with 10 additions and 3 deletions

4
_data/catz.yml Normal file
View File

@ -0,0 +1,4 @@
Meta: ["About","History","Events"]
Standards and Development: ["Verifiable Credentials and Decentralized Identifiers","Related Standards","Open Source Projects","Technology","Standards Development Orgs"]
Organizations: ["Companies","Community Orgs","Standards Development Orgs"]
Application: ["Government","Uses","Decentralized Web","Web 3"]

View File

@ -19,10 +19,12 @@ layout: archive
{% assign categories_max = category[1].size %}
{% endif %}
{% endfor %}
<ul class="taxonomy__index">
{% for item in site.data.catz %}
<strong>{{ item[0] | upcase }}</strong>
<ul class="taxonomy__index">
{% for i in (1..categories_max) reversed %}
{% for category in site.categories %}
{% if category[1].size == i %}
{% if category[1].size == i and item[1] contains category[0] %}
<li>
<a href="/categories/#{{ category[0] | slugify }}">
<strong>{{ category[0] }}</strong> <span class="taxonomy__count">{{ i }}</span>
@ -31,7 +33,8 @@ layout: archive
{% endif %}
{% endfor %}
{% endfor %}
</ul>
</ul>
{% endfor %}
<h2>Tags Grouped by Section</h2>
<p>This system of navigation is part of an ongoing transition towards making this content, and its subject-matter, more accessible based upon the specific topic you are interested in.</p>
<h3>Sections</h3>