replace albumm output with post

This commit is contained in:
Set Hallstrom 2020-07-27 14:37:24 +02:00
parent 2a959e4e75
commit 58ccd3a4f3
4 changed files with 25 additions and 15 deletions

View file

@ -44,7 +44,7 @@ categories:
collections:
albums:
output: true
output: false
permalink: /albums/:name/
tracks:
output: true

View file

@ -54,23 +54,33 @@ layout: default
<section style="padding-top:40px">
{% include author.html %}
<!-- Content -->
{% if page.all.UNSYNCEDLYRICS != nil %}
<div class="content">
{% unless page.all.UNSYNCEDLYRICS == '' %}<h2>Lyrics</h2>{% endunless %}
{% if page.all.UNSYNCEDLYRICS and page.all.USLT %}
<p style="font-family: monospace;font-size:16px;">
{{ page.all.USLT.text | newline_to_br }}
</p>
{% elsif page.all.USLT and page.all.UNSYNCEDLYRICS == nil %}
<p style="font-family: monospace;font-size:16px;">
{{ page.all.USLT.text | newline_to_br }}
</p>
{% elsif page.all.UNSYNCEDLYRICS and page.all.USLT == nil %}
<p style="font-family: monospace;font-size:16px;">
{{ page.all.UNSYNCEDLYRICS | newline_to_br }}
</p>
{% endif %}
<p>
{{ page.all.Comment }}
</p>
</div>
{% endif %}
</section>
</div>
</div>
</section>
{% for post in site.posts %}
{% if post.album == page.albumSlug %}
{% include streamer.html %}
{% endif %}
{% endfor %}
<!-- Page navigation -->
<section class="wrapper style1 align-center">
<div class="inner">

View file

@ -36,9 +36,9 @@ image: /images/pages/jack-hamilton-CMnNiQBkwBI-unsplash.jpg
</section>
{% assign sorted = site.albums | sort: 'date' | reverse %}
{% assign sorted = site.posts | sort: 'date' | reverse %}
{% for album in sorted %}
{% if album.category == 'releases' %}
<section class="spotlight style4 orient-{% cycle 'left', 'right' %} content-align-left image-position-center onscroll-image-fade-in" {% if forloop.index == 1 %}style="box-shadow: none;" {% endif %}>
<div class="content">
<h1>{{ album.title }}</h1>
@ -66,11 +66,11 @@ image: /images/pages/jack-hamilton-CMnNiQBkwBI-unsplash.jpg
</div>
<div class="image">
<img src="{{ site.mediaurl }}/{{ album.slug }}/{{ album.tracks[0].trackSlug }}.jpeg" alt="{{ album.title }}" title="{{ album.title }}" />
<img src="{{ album.image }}" alt="{{ album.title }}" title="{{ album.title }}" />
</div>
</section>
{% endif %}
{% endfor %}
{% include streamer.html %}

View file

@ -43,7 +43,7 @@ logo_image: /siteicon.png
</div>
</section>
{% for post in site.posts limit: '2' %}
{% for post in site.posts limit: '1' %}
<section
class="section-shadow banner style1 orient-{% cycle 'left', 'right' %} content-align-{% cycle 'right', 'left' %} image-position-center fullscreen onload-image-fade-in onload-content-fade-right">
@ -102,9 +102,9 @@ logo_image: /siteicon.png
</section>
{% assign sorted = site.albums | sort: 'date' | reverse %}
{% for album in sorted %}
{% assign sorted = site.posts | sort: 'date' | reverse %}
{% for album in sorted | offset: '1' %}
{% if album.category == 'releases' %}
<section
class="spotlight style5 orient-{% cycle 'left', 'right' %} content-align-{% cycle 'right', 'left' %} image-position-center onscroll-image-fade-in"
{% if forloop.index == 1 %}style="box-shadow: none;" {% endif %}>
@ -119,12 +119,12 @@ logo_image: /siteicon.png
</ul>
</div>
<div class="image">
<img src="{{ site.mediaurl }}/{{ album.slug }}/{{ album.tracks[0].trackSlug }}.jpeg"
<img src="{{ album.image }}"
alt="{{ album.title | smartify }}" />
</div>
</section>
{% endif %}
{% endfor %}
<!-- END Release -->