homepage accomodates for posts

This commit is contained in:
sakrecoer 2020-07-06 12:14:57 +02:00
parent 96277e6cd4
commit 5a4d7fd7f0

View file

@ -2,7 +2,7 @@
title: Post Tenebras Lux
layout: default
description: >-
Panix Heavy Industries
image: /siteicon.png
logo_image: /images/panix-logoicon.svg
date: 2018-12-11 00:00:00
@ -32,14 +32,7 @@ date: 2018-12-11 00:00:00
{% for post in site.posts %}
{% capture album_name -%}
{{ post.album }}
{%- endcapture %}
{% for album in site.albums %}
{% capture name -%}
{{ album.relative_path | replace_first: album.collection, '' | replace_first: '_/', '' | replace_first: '.md', '' }}
{%- endcapture %}
{% if name == album_name %}
<section id="album{% increment var %}"
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">
@ -47,7 +40,14 @@ date: 2018-12-11 00:00:00
<h1>{{ post.title }}</h1>
<p>{{ post.description }}</p>
{% if post.category == 'release' %}
{% capture album_name -%}
{{ post.album }}
{%- endcapture %}
{% for album in site.albums %}
{% capture name -%}
{{ album.relative_path | replace_first: album.collection, '' | replace_first: '_/', '' | replace_first: '.md', '' }}
{%- endcapture %}
{% if name == album_name %}
<p>{{ album.date | date: '%Y' }}</p>
{% for track in album.tracks %}
@ -68,9 +68,12 @@ date: 2018-12-11 00:00:00
theSpan.innerHTML = {{ track.common.title | slugify | remove: '-' }}formatted;
</script>
{% endfor %}
{% break %} {% endif %} {% endfor %}
{% endif %}
<br />
<ul class="actions stacked">
<li><a href="{{ relBase }}{{ post.url }}"
class="button big wide {% if post.category == 'release' %}icon solid fa-volume-up{% endif %}">Cheggid out</a>
</li>
@ -78,11 +81,11 @@ date: 2018-12-11 00:00:00
</div>
<div class="image">
<img src="{{ relBase }}{{ album.cover }}" alt="{{ post.title }}" title="{{ post.title }}" />
<img src="{{ relBase }}{{ post.image }}" alt="{{ post.title }}" title="{{ post.title }}" />
</div>
</section>
{% break %} {% endif %} {% endfor %}
{% endfor %}
<!-- Insta -->