reintroducing posting

This commit is contained in:
sakrecoer 2020-07-05 13:58:33 +02:00
parent 924151b7e7
commit 6985f30cc9

View file

@ -28,17 +28,25 @@ date: 2018-12-11 00:00:00
<img src="{{ relBase }}{{ page.logo_image }}" alt="{{ site.title }} logo" /> <img src="{{ relBase }}{{ page.logo_image }}" alt="{{ site.title }} logo" />
</div> </div>
</section> </section>
<!-- Albums --> <!-- Posts -->
{% assign sorted = site.albums | sort: 'date' | reverse %}
{% for album in sorted %}
{% 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 %}" <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"> 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">
<div class="content"> <div class="content">
<h1>{{ album.name }}</h1> <h1>{{ post.title }}</h1>
<p>{{ post.description }}</p>
{% if post.category == 'release' %}
<p>{{ album.date | date: '%Y' }}</p> <p>{{ album.date | date: '%Y' }}</p>
@ -60,22 +68,59 @@ date: 2018-12-11 00:00:00
theSpan.innerHTML = {{ track.common.title | slugify | remove: '-' }}formatted; theSpan.innerHTML = {{ track.common.title | slugify | remove: '-' }}formatted;
</script> </script>
{% endfor %} {% endfor %}
{% endif %}
<br /> <br />
<ul class="actions stacked"> <ul class="actions stacked">
<li><a href="{{ relBase }}/{{ album.slug }}" <li><a href="{{ relBase }}{{ post.url }}"
class="button big wide icon solid fa-volume-up">Cheggid out</a> class="button big wide {% if post.category == 'release' %}icon solid fa-volume-up{% endif %}">Cheggid out</a>
</li> </li>
</ul> </ul>
</div> </div>
<div class="image"> <div class="image">
<img src="https://media.basspistol.com/panix/{{ album.slug }}/{{ album.tracks[0].trackSlug }}.jpeg" alt="{{ post.title }}" title="{{ post.title }}" /> <img src="{{ relBase }}{{ album.cover }}" alt="{{ post.title }}" title="{{ post.title }}" />
</div> </div>
</section> </section>
{% break %} {% endif %} {% endfor %}
{% endfor %} {% endfor %}
<!-- Insta -->
<section class="wrapper style1 align-center">
<div class="inner">
<h2>Releases</h2>
<p>Collection of releases through time</p>
</div>
<div class="gallery style1 small onscroll-fade-in">
{% assign sorted = site.albums | sort: 'date' | reverse %}
{% for album in sorted %}
<article>
<a href="{{ album.url }}" class="image">
<img src="https://media.basspistol.com/panix/{{ album.slug }}/{{ album.tracks[0].trackSlug }}.jpeg" alt="" /></a>
<div class="caption">
<h3>{{ album.title }}</h3>
<p>{{ album.date | date: "%Y" }}</p>
<ul class="actions fixed">
<li><span class="button small">Details</span></li>
</ul>
</div>
</article>
{% endfor %}
</div>
</section>
<!-- END Insta -->
{% include footer.html %} {% include footer.html %}