-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from t5r7/main
Use Jekyll collection for Players
- Loading branch information
Showing
18 changed files
with
125 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
--- | ||
permalink: /players/awed/ | ||
keywords: players | ||
layout: players | ||
|
||
player_name: awed | ||
player_id: awed | ||
conf_id: past | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
--- | ||
permalink: /players/jay/ | ||
keywords: players | ||
layout: players | ||
|
||
player_name: Jay | ||
player_id: jay | ||
conf_id: past | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
--- | ||
permalink: /players/snhk/ | ||
keywords: players | ||
layout: players | ||
|
||
player_name: SNHK | ||
player_id: snhk | ||
conf_id: past | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
--- | ||
permalink: /players/tom/ | ||
keywords: players | ||
layout: players | ||
|
||
player_name: Tom | ||
player_id: tom | ||
conf_id: chest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
--- | ||
permalink: /players/trm/ | ||
keywords: players | ||
layout: players | ||
|
||
player_name: TRM | ||
player_id: trm | ||
conf_id: chance | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
--- | ||
title: Players | ||
desc: Meet the players of Leagueopoly - an esports league based on the Monopoly clone Richup.io. Players compete to earn points based on their per-game ranking. Top two in each conference advance! | ||
description: Meet the players of Leagueopoly - an esports league based on the Monopoly clone Richup.io. Players compete to earn points based on their per-game ranking. Top two in each conference advance! | ||
permalink: /players/ | ||
keywords: players | ||
layout: default | ||
--- | ||
|
||
<div class="flex w-full sm:space-x-4 sm:space-y-0 space-y-4 sm:flex-row flex-col"> | ||
<div class="flex-auto"> | ||
<div class="box-featured p-4 rounded-2xl"> | ||
<b class="default-text-shadow text-2xl">Players</b><br> | ||
<p class="text-lg">Meet all the talented players of Leagueopoly, past and present.</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="flex mt-8 w-full sm:space-x-4 sm:space-y-0 space-y-4 sm:flex-row flex-col"> | ||
<div class="flex-auto"> | ||
<div class="box-chance p-4 rounded-2xl"> | ||
<b class="default-text-shadow text-xl">Chance Conference</b><br> | ||
<p>Members of the Chance Conference.</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="flex mt-4 w-full sm:space-x-4 sm:space-y-0 space-y-4 sm:flex-row flex-col"> | ||
|
||
{% for player in site.players %} | ||
{% comment %} this if statement means we don't have to make a temp collection using | where {% endcomment %} | ||
{% if player.conf_id == "chance" %} | ||
<div class="w-full"> | ||
<a href="/players/{{ player.player_id }}"> | ||
<div class="box-{{ player.player_id }} box-player p-4 h-64 rounded-2xl"> | ||
<div class="justify-center items-end w-full h-full flex"> | ||
<b class="default-text-shadow text-2xl">{{ player.player_name }}</b> | ||
</div> | ||
</div> | ||
</a> | ||
</div> | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
|
||
<div class="flex mt-8 w-full sm:space-x-4 sm:space-y-0 space-y-4 sm:flex-row flex-col"> | ||
<div class="flex-auto"> | ||
<div class="box-chest p-4 rounded-2xl"> | ||
<b class="default-text-shadow text-xl">Community Chest Conference</b><br> | ||
<p>Members of the Community Chest Conference.</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="flex mt-4 w-full sm:space-x-4 sm:space-y-0 space-y-4 sm:flex-row flex-col"> | ||
{% for player in site.players %} | ||
{% comment %} this if statement means we don't have to make a temp collection using | where {% endcomment %} | ||
{% if player.conf_id == "chest" %} | ||
<div class="w-full"> | ||
<a href="/players/{{ player.player_id }}"> | ||
<div class="box-{{ player.player_id }} box-player p-4 h-64 rounded-2xl"> | ||
<div class="justify-center items-end w-full h-full flex"> | ||
<b class="default-text-shadow text-2xl">{{ player.player_name }}</b> | ||
</div> | ||
</div> | ||
</a> | ||
</div> | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
|
||
<div class="flex mt-8 w-full sm:space-x-4 sm:space-y-0 space-y-4 sm:flex-row flex-col"> | ||
<div class="flex-auto"> | ||
<div class="box-past p-4 rounded-2xl"> | ||
<b class="default-text-shadow text-xl">Previous Players</b><br> | ||
<p>Players from past seasons of Leagueopoly.</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="flex mt-4 w-full sm:w-full sm:space-x-4 sm:space-y-0 space-y-4 sm:flex-row flex-col"> | ||
{% assign counted_past = 0 %} | ||
{% for player in site.players %} | ||
|
||
{% comment %} this if statement means we don't have to make a temp collection using | where {% endcomment %} | ||
{% if player.conf_id == "past" %} | ||
<div class="w-full"> | ||
<a href="/players/{{ player.player_id }}"> | ||
<div class="box-{{ player.player_id }} box-player p-4 h-64 rounded-2xl"> | ||
<div class="justify-center items-end w-full h-full flex"> | ||
<b class="default-text-shadow text-2xl">{{ player.player_name }}</b> | ||
</div> | ||
</div> | ||
</a> | ||
</div> | ||
|
||
{% comment %} every Xth player, we start a new row, except for the first player {% endcomment %} | ||
{% assign mod = counted_past | modulo: 5 %} | ||
{% if mod == 0 and forloop.index0 != 0 %} | ||
</div> | ||
<div class="flex mt-4 w-full sm:w-full sm:space-x-4 sm:space-y-0 space-y-4 sm:flex-row flex-col"> | ||
{% endif %} | ||
|
||
{% assign counted_past = counted_past | plus: 1 %} | ||
{% endif %} | ||
{% endfor %} | ||
</div> |
Oops, something went wrong.