Fixed album descriptions
This commit is contained in:
parent
16b5573897
commit
8e8a71d71a
@ -63,9 +63,9 @@
|
|||||||
<img class="album-art" src="{{ album.album_art }}" alt="{{ album.title }}">
|
<img class="album-art" src="{{ album.album_art }}" alt="{{ album.title }}">
|
||||||
<div class="caption">
|
<div class="caption">
|
||||||
<h5>{{ album.title }} ({{ album.releaseYear }})</h5>
|
<h5>{{ album.title }} ({{ album.releaseYear }})</h5>
|
||||||
{% if albums[0].description %}
|
{% if album.description %}
|
||||||
<hr />
|
<hr />
|
||||||
<p id="album-description">{{ albums[0].description|length > 50 ? albums[0].description[:50] ~ '...' : albums[0].description }}</p>
|
<p id="album-description">{{ album.description|length > 50 ? album.description[:50] ~ '...' : album.description }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -63,9 +63,9 @@
|
|||||||
<img class="album-art" src="{{ album.album_art }}" alt="{{ album.title }}">
|
<img class="album-art" src="{{ album.album_art }}" alt="{{ album.title }}">
|
||||||
<div class="caption">
|
<div class="caption">
|
||||||
<h5>{{ album.title }} ({{ album.releaseYear }})</h5>
|
<h5>{{ album.title }} ({{ album.releaseYear }})</h5>
|
||||||
{% if albums[0].description %}
|
{% if album.description %}
|
||||||
<hr />
|
<hr />
|
||||||
<p id="album-description">{{ albums[0].description|length > 50 ? albums[0].description[:50] ~ '...' : albums[0].description }}</p>
|
<p id="album-description">{{ album.description|length > 50 ? album.description[:50] ~ '...' : album.description }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user