title | subtitle | header_type | header_img |
---|---|---|---|
One World |
Blog & Projects |
hero |
/assets/img/site/banner.png |
{: .mb-5 }
{% include_cached components/indexcards.html cacheddocs=site.posts cachedlimit=3 %}
{: .my-5 .bg-primary }
{: .mb-5 }
{%- assign alldocs = site.documents | where_exp: "item", "item.collection == 'projects'" | sort: date | reverse -%}
{% include_cached components/indexcards.html cacheddocs=alldocs cachedlimit=3 %}
{%- assign alldocs = site.documents -%} {%- assign showcol = true -%}
{% assign alldocs = alldocs | sort: 'date' | reverse %} {% assign alltags = alldocs | map: 'tags' | join: ',' | split: ',' %}
{%- assign single_tags = alltags | uniq -%} {% assign count_tags = '' | split: ',' %} {% assign n_tags = single_tags | size | minus: 1 %}
{%- for i in (0..n_tags) %} {% assign count_this_tag = alltags | where_exp:"item", "item == single_tags[i]" | size %} {% assign count_tags = count_tags | push: count_this_tag %} {%- endfor -%}
{% assign items_max = count_tags | sort | last %} {% assign sorted_tags = '' | split: ',' %} {% assign sorted_count_tags = '' | split: ',' %}
{% for i in (1..items_max) reversed %} {% for j in (0..n_tags) %} {% if count_tags[j] == i %} {% assign sorted_tags = sorted_tags | push: single_tags[j] %} {% assign sorted_count_tags = sorted_count_tags | push: i %} {% endif %} {% endfor %} {% endfor %}
{% assign sorted_tags= sorted_tags | uniq %}
{%- assign sizemax = sorted_count_tags | first -%} {% assign mid = sorted_count_tags | last | plus: sizemax | divided_by: 2 %}
github.com/dieghernan Mastodon Verification
dieghernan