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