replace albumm output with post
This commit is contained in:
parent
2a959e4e75
commit
58ccd3a4f3
4 changed files with 25 additions and 15 deletions
12
index.html
12
index.html
|
|
@ -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 -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue