Skip to content

Commit 08e7f38

Browse files
committed
Разделяет хостов и гостей
1 parent e80dcf0 commit 08e7f38

File tree

2 files changed

+26
-19
lines changed

2 files changed

+26
-19
lines changed

src/pages/episode.njk

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,26 @@
1010
<h1 class="article__title podcast__title">
1111
{{ episode.data.title }}
1212
</h1>
13-
<section class="podcast__hosts">
14-
<h2 class="podcast__hosts-heading">Ведущие:</h2>
15-
<ul class="podcast__hosts-list">
16-
{% for host in episode.data.hosts %}
17-
<li class="podcast__host">
13+
<dl class="podcast__participants">
14+
<div>
15+
<dt>Ведущие:</dt>
16+
<dd>
17+
{% for host in episode.data.hosts %}
1818
{{ host }}{% if not loop.last %},{% endif %}
19-
</li>
20-
{% endfor %}
21-
</ul>
22-
</section>
19+
{% endfor %}
20+
</dd>
21+
</div>
22+
{% if episode.data.guests %}
23+
<div>
24+
<dt>Гости:</dt>
25+
<dd>
26+
{% for guest in episode.data.guests %}
27+
{{ guest }}{% if not loop.last %},{% endif %}
28+
{% endfor %}
29+
</dd>
30+
</div>
31+
{% endif %}
32+
</dl>
2333
</header>
2434

2535
<div class="podcast__player player">

src/styles/blocks/podcast.css

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,22 +71,19 @@
7171
}
7272
}
7373

74-
.podcast__hosts-heading {
75-
display: inline;
76-
margin: 0 0.5em 0 0;
77-
font-weight: 600;
78-
font-size: inherit;
79-
letter-spacing: 0.01em;
74+
.podcast__participants {
75+
display: grid;
76+
row-gap: 8px;
8077
}
8178

82-
.podcast__hosts-list {
79+
.podcast__participants dt {
8380
display: inline;
84-
margin: 0;
85-
padding: 0;
81+
font-weight: bold;
8682
}
8783

88-
.podcast__host {
84+
.podcast__participants dd {
8985
display: inline;
86+
margin: 0;
9087
}
9188

9289
.podcast__player {

0 commit comments

Comments
 (0)