setto.basspistol.com/index.html

168 lines
4.4 KiB
HTML
Raw 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-12-14 20:39:45 +01:00
apps:
- name: Support
2020-12-14 20:45:28 +01:00
link: '#support'
2020-12-14 20:39:45 +01:00
icon: 🌮
external: false
- name: Video
2020-12-14 20:45:28 +01:00
link: https://v.basspistol.org/video-channels/tosettosetto/
2020-12-14 20:39:45 +01:00
icon: 📺
external: true
- name: Read
2020-12-15 21:15:33 +01:00
link: '/log/'
2020-12-15 14:15:48 +01:00
icon: 📰
2020-12-14 20:39:45 +01:00
external: false
- name: Support
2020-12-14 20:45:28 +01:00
link: https://t.basspistol.org/setto/
2020-12-14 20:39:45 +01:00
icon: 📢
external: true
- name: chat
2020-12-14 20:45:28 +01:00
link: '/chat/#read'
2020-12-14 20:39:45 +01:00
icon: 🗨️
external: false
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))
{
divRandomPosts.append('<a class="button" href="' + postHREF + '">🔥</a>');
}
else
{
divRandomPosts.append('<a class="button" href="' + postHREF + '">🔥</a>');
}
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">
<h1>{{ site.title }}</h1>
<p>{{ page.description }}</p>
2020-12-14 20:39:45 +01:00
<ul>{% for app in page.apps %}
2020-12-14 20:45:28 +01:00
<li><a href="{{ app.link }}" {% if app.external == true %}rel="noopener" target="_blank"{% endif %} class="button">{{ app.icon }}</a></li>
2020-12-14 20:39:45 +01:00
{% endfor %}
2020-12-15 14:09:24 +01:00
<li id="random_posts"></li>
2020-12-14 20:18:16 +01:00
</ul>
2020-09-18 11:15:11 +02:00
</div>
</div>
2020-09-18 11:52:21 +02:00
2020-09-11 19:02:26 +02:00
</header>
2020-09-11 19:19:02 +02:00
{% for post in site.posts limit: 3 %}
2020-09-11 19:22:14 +02:00
{% if post.category == 'ramblings' %}
2020-09-18 13:04:52 +02:00
<section id="read" class="front-section">
2020-08-04 12:07:59 +02:00
2020-09-11 19:22:14 +02: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">
<div class="">
<h3>{{ post.title }}</h3>
{{ post.description }}
</div>
<div>
2020-09-18 12:41:42 +02:00
<p><a class="button" href="{{ relBase }}{{ post.url }}#read">📰 Read Highlight</a></p>
2020-09-11 19:22:14 +02:00
</div>
2020-08-04 10:48:11 +02:00
2020-09-11 19:22:14 +02:00
</div>
</div>
2020-08-04 10:48:11 +02:00
</section>
2020-09-11 19:22:14 +02:00
{% endif %}
2020-08-04 12:07:59 +02:00
{% endfor %}
2020-09-11 19:02:26 +02:00
2020-08-03 21:40:11 +02:00
<section class="releases">
2020-09-11 19:02:26 +02:00
<h2>Releases</h2>
<div class="container">
2020-08-03 21:40:11 +02:00
{% assign sorted = site.albums | sort: 'date' | reverse %}
{% for album in sorted %}
{% for post in site.posts %}
{% if album.slug == post.album %}
2020-09-11 19:02:26 +02:00
2020-08-03 21:40:11 +02:00
<article>
<figure>
2020-09-18 12:41:42 +02:00
<a href="{{ post.url }}#play">
2020-08-05 15:54:25 +02:00
<img src="{{ site.mediaurl }}/{{ album.tracks[0].slug }}.jpeg" alt="Cover art for {{ post.title }}" /></a>
2020-08-03 21:40:11 +02:00
<figcaption>
<strong>{{ album.name }}</strong><br />
{% assign total = 0 %}
{% for track in album.tracks %}
{% assign total = total | plus: track.format.duration %}
{% endfor %}
{% 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 }}
<br />
{{ album.date | date: '%Y' }}
</figcaption>
</figure>
</article>
{% endif %}
{% endfor %}
{% endfor %}
2020-09-11 19:02:26 +02:00
</div>
</section>