Skip to content

Latest commit

 

History

History
38 lines (33 loc) · 1.34 KB

poap-leaderboard.md

File metadata and controls

38 lines (33 loc) · 1.34 KB
layout title description keywords permalink header subheader buttons
markdown
POAP Leaderboard
A leaderboard for POAP creators.
poap, poaps, rocket, pool, rpl
/poap-leaderboard/
POAP Leaderboard
A leaderboard for POAP creators.
<a href="/poaps" class="btn btn-outline-dark btn-lg px-4 m-1">POAPs</a>
<a href="/poap-graveyard" class="btn btn-outline-dark btn-lg px-4 m-1">Graveyard</a>

{%- assign all_creators = site.data.poaps | map: "creator" | uniq -%} {%- assign leaderboard = "..." -%} {%- for creator in all_creators -%} {%- assign count = site.data.poaps | where: "creator", creator | size -%} {%- if count < 10 -%} {%- assign count = "0" | append: count -%} {%- endif -%} {%- assign entry = count | append: "--" | append: creator -%} {%- assign leaderboard = leaderboard | append: ", " | append: entry -%} {%- endfor -%} {%- assign leaderboard = leaderboard | remove: "..., " | split: ", " | sort_natural | reverse -%}

{:class="table table-sm table-hover leaderboard-table"}

Rank Creator POAPs
{%- for entry in leaderboard -%}
{%- assign creator = entry split: "--" last -%}
{%- assign count = entry split: "--" first -%}
{%- if creator != "unknown" %}
{{forloop.index}} | {{creator}}   | {{count}}

{%- endif -%} {%- endfor -%}