setto.basspistol.com/index.html

145 lines
4.4 KiB
HTML
Raw Permalink Normal View History

2020-08-03 21:40:11 +02:00
---
2020-11-30 10:54:56 +01:00
title: 'Yo, web-TV crib! ゲットー・スービド'
2020-08-03 21:40:11 +02:00
description: >-
2020-11-30 10:54:56 +01:00
The music of To Setto Setto is a cypher cloud jam induced by popcorn chewing
threads in obscure chat-rooms.
2020-11-30 11:03:55 +01:00
image: /images/pages/background-setto-v2-blus.svg
2020-11-30 10:59:22 +01:00
video_path:
2020-08-03 21:40:11 +02:00
---
2020-11-30 10:54:56 +01:00
2020-12-15 14:09:24 +01:00
<script type="text/javascript">
function generateRandomPosts()
{
$.getJSON("/posts.json", function(data) {
console.log("[posts.json loaded for random posts]");
var postsCount = data.length;
var posts = data;
var randomIndexUsed = [];
var counter = 0;
var numberOfPosts = 1;
var divRandomPosts = $("#random_posts");
while (counter < numberOfPosts)
{
var randomIndex = Math.floor(Math.random() * postsCount);
if (randomIndexUsed.indexOf(randomIndex) == "-1")
{
var postHREF = posts[randomIndex].href;
var postTitle = posts[randomIndex].title;
if (counter == (numberOfPosts - 1))
{
2021-04-10 11:56:55 +02:00
divRandomPosts.replaceWith('<a class="button" href="' + postHREF + '">🔥</a>');
2020-12-15 14:09:24 +01:00
}
else
{
2021-04-10 11:56:55 +02:00
divRandomPosts.replaceWith('<a class="button" href="' + postHREF + '">🔥</a>');
2020-12-15 14:09:24 +01:00
}
randomIndexUsed.push(randomIndex);
counter++;
}
}
});
}
$(document).ready(function() {
generateRandomPosts();
});
</script>
2020-08-03 21:40:11 +02:00
{% include relBase.html %}
2020-09-11 19:02:26 +02:00
<header class="hero" id="top"
2020-09-18 11:52:21 +02:00
style="background-image: url({{ page.image }});">
2020-09-11 19:02:26 +02:00
<div class="imagecontainer">
<h4>{{ page.title }}</h4>
</div>
2020-09-18 11:52:21 +02:00
<div class="splash">
2020-09-18 11:15:11 +02:00
<div class="splash-logo">
2020-09-18 13:18:16 +02:00
<a href="#read"><img src="{{ site.icon }}" width="240px" alt="{{ site.title }} Logo" /></a>
2020-09-18 11:15:11 +02:00
</div>
<div class="description">
2021-09-06 13:26:07 +02:00
<script type="text/javascript" src="https://pr.basspistol.com/form/generate.js?id=7"></script>
2020-12-25 04:47:21 +01:00
<ul>{% for app in site.data.navigation %}
<li><a href="{{ app.url }}" {% if app.external_site == true %}rel="noopener" target="_blank"{% endif %} class="button">{{ app.icon }}</a></li>
2020-12-14 20:39:45 +01:00
{% endfor %}
2021-04-10 11:56:55 +02:00
<li id="random_posts"><a href="/discography" class="button">🔥</a></li>
2020-12-14 20:18:16 +01:00
</ul>
2021-05-05 10:25:04 +02:00
2021-05-05 10:31:22 +02:00
2021-05-04 23:37:17 +02:00
</div>
2020-09-18 11:15:11 +02:00
</div>
2020-09-18 11:52:21 +02:00
2020-09-11 19:02:26 +02:00
</header>
2021-01-07 11:29:49 +01:00
<section class="releases" id="read">
2021-05-04 23:37:17 +02:00
<div class="content-wrapper" style="text-align: center;">
<h1>{{ site.title }}</h1>
<p>{{ page.description }}</p>
2021-01-07 11:29:49 +01:00
<h2>Releases</h2>
<div class="container">
{% assign sorted = site.posts | sort: 'date' | reverse %}
{% for post in sorted %}
{% for album in site.albums %}
{% if album.slug == post.album %}
<article>
<figure>
<a href="{{ post.url }}#play">
<img src="{{ site.mediaurl }}/{{ album.tracks[0].slug }}.jpeg" alt="Cover art for {{ post.title }}" /></a>
<figcaption>
<p><strong>{{ album.name }}</strong></p>
{% assign total = 0 %}
{% for track in album.tracks %}
{% assign total = total | plus: track.format.duration %}
{% endfor %}
<p>Duration: <strong>{% assign round_seconds = total | round %}{% assign minutes = round_seconds | divided_by: 60 %}{% assign leftover_seconds = minutes | times: 60 %}{{ minutes }}:{% assign seconds_without_zero = round_seconds | minus: leftover_seconds %}{% if seconds_without_zero < 10 %}0{% endif %}{{ seconds_without_zero }}</strong></p>
2020-09-11 19:02:26 +02:00
2021-01-07 11:29:49 +01:00
<p>{% for tag in post.tags %}{{ tag }}{% endfor %} released <time datetime="{{ post.date }}">{{ album.date | date: '%Y' }}</time></p>
</figcaption>
</figure>
</article>
{% endif %}
{% endfor %}
{% endfor %}
</div>
2021-05-04 23:37:17 +02:00
</div>
2020-12-25 04:47:21 +01:00
</section>
2021-01-07 11:29:49 +01:00
2020-12-25 21:18:56 +01:00
{% for post in site.posts %}
2021-01-07 11:29:49 +01:00
{% if post.category == 'ramblings' %}
<section id="news" class="front-section">
2020-08-04 12:07:59 +02:00
2020-12-25 21:18:56 +01:00
<div style="background-image:url({{ post.image }})">
<p class="editor-link"><a href="cloudcannon:collections/_posts/{{ post.path }}" rel="nofollow"
class="btn"><strong>&#9998;</strong> Edit Post</a></p>
</div>
<div class="description">
<div class="container">
<h2>{{ post.title }}</h2>
2021-01-07 11:29:49 +01:00
<p><strong>Posted on <time datetime="{{ post.date }}">{% include forloop-dates.html %}</time></strong></p>
2020-12-25 21:18:56 +01:00
<p>{{ post.description }}</p>
<p><a href="{{ relBase }}{{ post.url }}" class="button">🔊 Listen</a></p>
2020-12-25 12:38:04 +01:00
2020-12-25 21:18:56 +01:00
</div>
2020-09-11 19:22:14 +02:00
</div>
2020-08-04 10:48:11 +02:00
</section>
2020-09-11 19:22:14 +02:00
{% endif %}
2021-01-07 11:29:49 +01:00
{% endfor %}