This commit is contained in:
sakrecoer 2020-12-25 04:47:21 +01:00
parent 1c3e2d83dc
commit 79682bb286
14 changed files with 180 additions and 194 deletions

View file

@ -12,19 +12,27 @@ apps:
external: false
- name: Video
link: https://v.basspistol.org/video-channels/tosettosetto/
icon: 📺
icon: 📹
external: true
- name: Read
link: '/log/'
icon: 📰
external: false
- name: Support
- name: Support🎶
link: https://t.basspistol.org/setto/
icon: 📢
icon: 📰
external: true
- name: chat
- name: Chat
link: '/chat/#read'
icon: 🗨️
icon: 📡
external: false
- name: Matrix
link: https://matrix.to/#/@sakrecoer:basspistol.org
icon: 🕸
external: true
- name: Links
link: /links/
icon: 🔗
external: false
- name: Music
link: '#read'
icon: 🎶
external: false
---
@ -91,8 +99,8 @@ apps:
<h1>{{ site.title }}</h1>
<p>{{ page.description }}</p>
<ul>{% for app in page.apps %}
<li><a href="{{ app.link }}" {% if app.external == true %}rel="noopener" target="_blank"{% endif %} class="button">{{ app.icon }}</a></li>
<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>
{% endfor %}
<li id="random_posts"></li>
</ul>
@ -101,67 +109,26 @@ apps:
</header>
<section id="read">
{% for post in site.posts limit: 3 %}
{% if post.category == 'ramblings' %}
<section id="read" class="front-section">
</section>
{% assign sorted = site.posts | sort: 'date' | reverse %}
{% for post in sorted %}
{% if post.category == 'releases' %}
<section class="news" style="margin:0;">
<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 style="background-image:url({{ relBase }}{{ post.image }}"></div>
<div class="description">
<div class="container">
<h2>{{ post.title }}</h2>
<p><strong>{% include forloop-dates.html %}</strong></p>
<p>{{ post.description }}</p>
<p><a href="{{ relBase }}{{ post.url }}#play" class="button">🔊 Listen</a></p>
</div>
<div class="description">
<div class="container">
<div class="">
<h3>{{ post.title }}</h3>
{{ post.description }}
</div>
<div>
<p><a class="button" href="{{ relBase }}{{ post.url }}#read">📰 Read Highlight</a></p>
</div>
</div>
</div>
</div>
</section>
{% endif %}
{% endfor %}
<section class="releases">
<h2>Releases</h2>
<div class="container">
{% assign sorted = site.albums | sort: 'date' | reverse %}
{% for album in sorted %}
{% for post in site.posts %}
{% 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>
<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 %}
</div>
</section>