mirror of
https://github.com/Decentralized-ID/decentralized-id.github.io.git
synced 2025-01-11 15:19:25 -05:00
add categories taxonomy to homepage
This commit is contained in:
parent
ce2ecefd8c
commit
8d1d2998a6
@ -11,22 +11,42 @@ layout: archive
|
||||
-->
|
||||
|
||||
{{ content }}
|
||||
{% assign tags_max = 0 %}
|
||||
{% for tag in site.tags %}
|
||||
{% if tag[1].size > tags_max %}
|
||||
{% assign tags_max = tag[1].size %}
|
||||
|
||||
<h2 id="top">Categories</h2>
|
||||
{% assign categories_max = 0 %}
|
||||
{% for category in site.categories %}
|
||||
{% if category[1].size > categories_max %}
|
||||
{% assign categories_max = category[1].size %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
<h2>Sections</h2>
|
||||
<h3 id="top">☙ {% for item in site.data.tagz %}<a href="#{{item[0]|downcase}}">{{item[0] | upcase | replace: "_", "-" }}</a> ☙ {% endfor %}</h3>
|
||||
|
||||
<h2>Tags Grouped by Section</h2>
|
||||
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.
|
||||
{% for item in site.data.tagz %}
|
||||
<h3 id="{{item[0] | downcase}}">{{ item[0] | upcase | replace: "_", "-" }}</h3><a href="#top" class="back-to-top"><strong>{{ site.data.ui-text[site.locale].back_to_top | default: 'Back to Top' }} ↑</strong></a>
|
||||
|
||||
<ul class="taxonomy__index">
|
||||
{% for i in (1..categories_max) reversed %}
|
||||
{% for category in site.categories %}
|
||||
{% if category[1].size == i %}
|
||||
<li>
|
||||
<a href="/categories/#{{ category[0] | slugify }}">
|
||||
<strong>{{ category[0] }}</strong> <span class="taxonomy__count">{{ i }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<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>
|
||||
<strong class="taxonomy__index">{% for item in site.data.tagz %}<a href="#{{item[0]|downcase}}">{{item[0] | capitalize | replace: "_", "-" }}</a>{% endfor %}</strong>
|
||||
{% for item in site.data.tagz %}
|
||||
<h4 id="{{item[0] | downcase}}">{{ item[0] | upcase | replace: "_", "-" }}</h4><a href="#top" class="back-to-top"><strong>{{ site.data.ui-text[site.locale].back_to_top | default: 'Back to Top' }} ↑</strong></a>
|
||||
|
||||
{% assign tags_max = 0 %}
|
||||
{% for tag in site.tags %}
|
||||
{% if tag[1].size > tags_max %}
|
||||
{% assign tags_max = tag[1].size %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
<ul class="taxonomy__index">
|
||||
{% for i in (1..tags_max) reversed %}
|
||||
{% for tag in site.tags %}
|
||||
{% if tag[1].size == i and item[1] contains tag[0] %}
|
||||
@ -40,4 +60,3 @@ This system of navigation is part of an ongoing transition towards making this c
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endfor %}
|
||||
|
||||
|
@ -48,6 +48,6 @@ classes: wide
|
||||
|
||||
<p>Lots of exciting developments going on behind the scenes here. For 2 years, this site hasn't gotten as much attention, but our focus has been on the weekly newsletter at <a href="https://newsletter.identosphere.net">Identosphere</a>.</p>
|
||||
|
||||
<p>Now we have begun to integrate that content from the newsletter to help bring this site up to date.</p>
|
||||
<p>Now we have begun to integrate that content from the newsletter, and go over some of the older content, to help bring this site up to date.</p>
|
||||
|
||||
<p>Along with that process, we've also been rebuilding some of the structure of how this content generated, and how its displayed. Be sure to check out our <a href="{{ site.baseurl }}/categories#companies">Companies Section</a> to get a peak at some <a href="{{ site.baseurl }}/posts/">new content</a> along with a new layout for generated content.</p>
|
Loading…
Reference in New Issue
Block a user