Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
katydecorah committed Oct 12, 2023
1 parent cfc745e commit eb7b089
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
20 changes: 11 additions & 9 deletions _includes/post/playlist.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<div class="playlist-container">
{% capture src %}{{page.playlist | slugify}}.png{% endcapture %} {% include
img.html src=src class='img-half' alt='album art' width='1000' height='1000'
%} {% if page.spotify %}
<p class="playlist-meta">
<a href="{{ page.spotify }}" class="btn"
>{% include icons/headphones.svg %} Listen on Spotify</a
>
</p>
{% endif %}
<div class="playlist-media">
{% capture src %}{{page.playlist | slugify}}.png{% endcapture %} {% include
img.html src=src class='img-half' alt='album art' width='1000' height='1000'
%} {% if page.spotify %}
<p class="playlist-meta">
<a href="{{ page.spotify }}" class="btn"
>{% include icons/headphones.svg %} Listen on Spotify</a
>
</p>
{% endif %}
</div>

<ul class="playlist">
{% for tracks in page.tracks %}
Expand Down
5 changes: 5 additions & 0 deletions assets/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ picture {
max-width: 500px;
}

.playlist-container,
.photos {
display: grid;
grid-gap: 1em;
Expand All @@ -422,6 +423,10 @@ picture {
}

@media (width >= 50rem) {
.playlist-media {
grid-column: span 8;
}

.photos .img-half {
grid-column: span 6;
}
Expand Down

0 comments on commit eb7b089

Please sign in to comment.