Skip to content

Commit

Permalink
Чинит выделение ведущих
Browse files Browse the repository at this point in the history
  • Loading branch information
BANOnotIT committed Oct 10, 2024
1 parent bc3a1e3 commit 768e085
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 6 additions & 2 deletions src/pages/episode.njk
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@
<section class="podcast__hosts">
<h2 class="podcast__hosts-heading">Ведущие:</h2>
<ul class="podcast__hosts-list">
{% for host in episode.data.hosts %}
<li class="podcast__host">{{ host }}</li>
{% set hosts = episode.data.hosts %}
{% for i in range(0, hosts.length) %}
{% set host = hosts[i] %}
<li class="podcast__host">
{{ host }}{% if i < hosts.length - 1 %},{% endif %}
</li>
{% endfor %}
</ul>
</section>
Expand Down
5 changes: 0 additions & 5 deletions src/styles/blocks/podcast.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,6 @@
display: inline;
}

.podcast__host:not(:last-child)::after {
content: ', ';
white-space: nowrap;
}

.podcast__player {
position: sticky;
top: 16px;
Expand Down

0 comments on commit 768e085

Please sign in to comment.