Skip to content

Latest commit

 

History

History
99 lines (66 loc) · 3.43 KB

index.md

File metadata and controls

99 lines (66 loc) · 3.43 KB
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 %}

<script type='text/javascript' src='https://storage.ko-fi.com/cdn/widget/Widget_2.js'></script><script type='text/javascript'>kofiwidget2.init('Support Me on Ko-fi', '#000000', 'K3K43H86Z');kofiwidget2.draw();</script>

{: .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 %}

{%- for i in (0..n_tags)-%} {{- sorted_tags[i] -}}{{ sorted_count_tags[i]}} {%- endfor -%}

github.com/dieghernan Mastodon Verification

dieghernan I just love maps.