Stream list complete + 3 columns

#2
This commit is contained in:
Norbi Peti 2019-07-01 22:49:34 +02:00
parent 37e31b478b
commit 6f992a5070
No known key found for this signature in database
GPG key ID: DBA4C4549A927E56
4 changed files with 152 additions and 33 deletions

View file

@ -1,3 +1,68 @@
- date: '2018-06-28'
host: 'Anna Yvette'
- date: '2018-07-05'
host: 'Approaching Nirvana'
- date: '2018-07-12'
host: 'Electro Light'
- date: '2018-07-19'
host: 'Varien'
- date: '2018-07-26'
host: 'Tim Schaufert'
- date: '2018-08-02'
host: '?Roundup'
- date: '2018-08-09'
host: 'Laura Brehm, Rival, Arc North'
- date: '2018-08-23'
host: 'Jim Yosef'
- date: '2018-08-30'
host: 'Rob Gasser'
- date: '2018-09-06'
host: '?Roundup'
streamer: 'Approaching Nirvana'
- date: '2018-09-13'
host: 'Sublab'
- date: '2018-09-20'
host: 'Veela'
- date: '2018-09-27'
host: 'floatinurboat'
- date: '2018-10-04'
host: 'Anna Yvette'
- date: '2018-10-11'
host: 'Hudson Lee'
- date: '2018-10-18'
host: '!AMA'
amaHost: 'Anna Yvette, Laura Brehm, Approaching Nirvana'
live: true
- date: '2018-10-25'
host: 'Anna Yvette'
- date: '2018-11-01'
host: 'Approaching Nirvana'
- date: '2018-11-08'
host: 'Arc North'
- date: '2018-11-15'
host: 'CASHFORGOLD'
- date: '2018-11-22'
host: 'Anna Yvette'
- date: '2018-11-29'
host: '?Roundup'
- date: '2018-12-06'
host: 'Cara Leigh'
- date: '2018-12-13'
host: 'Atlas in Motion'
- date: '2018-12-20'
host: 'Arc North, Rival'
- date: '2018-12-27'
host: 'Approaching Nirvana'
- date: '2019-01-03'
host: '!Yearmix'
year: 2018
- date: '2019-01-04'
host: '!Yearmix'
year: 2018
- date: '2019-01-10'
host: 'Alden Groves'
- date: '2019-01-17'
host: 'Hyper Potions'
- date: '2019-01-24' - date: '2019-01-24'
host: 'Voicians' host: 'Voicians'
streamer: 'Anna Yvette' streamer: 'Anna Yvette'
@ -59,21 +124,21 @@
title: 'Touch Me Hurt Me' title: 'Touch Me Hurt Me'
link: 'https://open.spotify.com/track/29K8kP8UZ2JPil2gXEjeSv?si=tg2jNJT5R72UXu9cqhAxUg' link: 'https://open.spotify.com/track/29K8kP8UZ2JPil2gXEjeSv?si=tg2jNJT5R72UXu9cqhAxUg'
- date: '2019-01-31' - date: '2019-01-31'
host: '!Roundup' host: '?Roundup'
streamer: 'Anna Yvette' streamer: 'Anna Yvette'
- date: '2019-02-07' - date: '2019-02-07'
host: '!Throwback' host: '?Throwback'
streamer: 'Anna Yvette' streamer: 'Anna Yvette'
throwbackHost: 'Sublab' throwbackHost: 'Sublab'
- date: '2019-02-14' - date: '2019-02-14'
host: 'Rameses B' host: 'Rameses B'
streamer: 'Anna Yvette' streamer: 'Anna Yvette'
- date: '2019-02-21' - date: '2019-02-21'
host: '!Throwback' host: '?Throwback'
streamer: 'Approaching Nirvana' streamer: 'Approaching Nirvana'
throwbackHost: 'Laura Brehm, Arc North, Rival' throwbackHost: 'Laura Brehm, Arc North, Rival'
- date: '2019-02-28' - date: '2019-02-28'
host: '!Roundup' host: '?Roundup'
streamer: 'Approaching Nirvana' streamer: 'Approaching Nirvana'
- date: '2019-03-05' - date: '2019-03-05'
host: '!Chill' host: '!Chill'
@ -85,14 +150,14 @@
host: '!Chill' host: '!Chill'
streamer: 'Anna Yvette' streamer: 'Anna Yvette'
- date: '2019-03-14' - date: '2019-03-14'
host: '!Throwback' host: '?Throwback'
streamer: 'Anna Yvette' streamer: 'Anna Yvette'
throwbackHost: 'floatinurboat' throwbackHost: 'floatinurboat'
- date: '2019-03-19' - date: '2019-03-19'
host: '!Chill' host: '!Chill'
streamer: 'Anna Yvette' streamer: 'Anna Yvette'
- date: '2019-03-21' - date: '2019-03-21'
host: '!Throwback' host: '?Throwback'
streamer: 'Anna Yvette' streamer: 'Anna Yvette'
throwbackHost: 'CASHFORGOLD' throwbackHost: 'CASHFORGOLD'
- date: '2019-03-26' - date: '2019-03-26'
@ -123,7 +188,7 @@
host: '!Chill' host: '!Chill'
streamer: 'Anna Yvette' streamer: 'Anna Yvette'
- date: '2019-04-25' - date: '2019-04-25'
host: '!Throwback' host: '?Throwback'
streamer: 'Approaching Nirvana' streamer: 'Approaching Nirvana'
throwbackHost: 'Arc North' throwbackHost: 'Arc North'
- date: '2019-04-30' - date: '2019-04-30'
@ -137,7 +202,7 @@
host: '!Chill' host: '!Chill'
streamer: 'Anna Yvette' streamer: 'Anna Yvette'
- date: '2019-05-09' - date: '2019-05-09'
host: '!Roundup' host: '?Roundup'
streamer: 'Cara Leigh' streamer: 'Cara Leigh'
- date: '2019-05-14' - date: '2019-05-14'
host: '!Chill' host: '!Chill'
@ -161,7 +226,7 @@
host: '!Chill' host: '!Chill'
streamer: 'Anna Yvette' streamer: 'Anna Yvette'
- date: '2019-06-06' - date: '2019-06-06'
host: '!Roundup' host: '?Roundup'
streamer: 'Anna Yvette' streamer: 'Anna Yvette'
- date: '2019-06-11' - date: '2019-06-11'
host: '!Chill' host: '!Chill'

20
_includes/streamlist.html Normal file
View file

@ -0,0 +1,20 @@
<li>
<h3>
{%- if stream.host == '!Chill' -%} Tuesday Chill Stream
{%- elsif stream.host == '?Throwback' -%} Throwback: {{ stream.throwbackHost }}
{%- elsif stream.host == '?Roundup' -%} Monthly Roundup
{%- elsif stream.host == '!Yearmix' -%} {{ stream.year }} yearmix
{%- elsif stream.host == '!AMA' -%} Q & A: {{ stream.amaHost }}
{%- else -%} {{- stream.host -}}
{%- endif -%}
{% if stream.live %} - LIVE {%- endif -%}
</h3>
</li>
<li>
{{ stream.date | date: "%a, %b %d, %Y" }}
</li>
{%- if stream.streamer -%} {% comment %} No streamer for future streams {% endcomment %}
<li>
Streamer: {{ stream.streamer }}
</li>
{%- endif -%}

View file

@ -74,3 +74,19 @@ nav li a {
nav li a:hover { nav li a:hover {
color: aqua; color: aqua;
} }
.stream-column {
float: left;
width: 33.33%;
}
.stream-column h2 {
text-align: center;
}
/* Clear floats after the columns */
.stream-row:after {
content: "";
display: table;
clear: both;
}

View file

@ -2,27 +2,45 @@
title: Streams title: Streams
ptitle: Streams ptitle: Streams
--- ---
{% assign streamx = site.data.streams | reverse %}
<ul> <div class="stream-row">
{% assign streams = site.data.streams | reverse %} <div class="stream-column">
{% for stream in streams %} <h2>Tuesday</h2>
<li> <ul>
<h2> {% assign streamm = streamx | where: "host", "!Chill" | where: "live", nil %}
{%- if stream.host == '!Chill' -%} Tuesday Chill Stream {% for stream in streamm %}
{%- elsif stream.host == '!Throwback' -%} Throwback: {{ stream.throwbackHost }} {% include streamlist.html stream=stream %}
{%- elsif stream.host == '!Roundup' -%} Monthly Roundup {% endfor %}
{%- else -%} {{- stream.host -}} </ul>
{%- endif -%} </div>
{% if stream.live %} - LIVE {%- endif -%} <div class="stream-column">
</h2> <h2>Thursday</h2>
</li> <ul>
<li> {% assign streamm = streamx | where: "live", nil %}
{{ stream.date | date: "%a, %b %d, %Y" }} {% for stream in streamm %}
</li> {% comment %}
{%- if stream.streamer -%} {% comment %} No streamer for future streams {% endcomment %} {% assign day = stream.date | date: "%w" %}
<li> {% if day == "4" %}
Streamer: {{ stream.streamer }} {% include streamlist.html stream=stream %}
</li> {% endif %}
{%- endif -%} {% endcomment %}
{% endfor %} {% assign x = stream.host | slice: 0 %}
</ul> {% if stream.live == nil and x != '!' %}
{% include streamlist.html stream=stream %}
{% endif %}
{% endfor %}
</ul>
</div>
<div class="stream-column">
<h2>Special</h2>
<ul>
{% assign streamm = streamx %}
{% for stream in streamm %}
{% assign x = stream.host | slice: 0 %}
{% if stream.live or x == '!' and stream.host != "!Chill" %}
{% include streamlist.html stream=stream %}
{% endif %}
{% endfor %}
</ul>
</div>
</div>