Skip to content

Commit 6f93f10

Browse files
Add icon for YouTube and Music player in the home page for each episode
1 parent ff9aea3 commit 6f93f10

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

_layouts/home.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,19 @@ <h2 class="card-title">
1818
</a>
1919
</h2>
2020
<span class="card-subtitle mb-2 text-muted">Posté le {{ post.date | date: site.date_format }}</span>
21-
21+
<span class="card-subtitle mb-2 text-muted">&nbsp;</span>
22+
{%- if post.youtube -%}
23+
<span>
24+
<a href="{{ post.youtube }}" class="d-inline-flex align-items-center">
25+
<em class="bi bi-youtube youtube-red fs-2 mr-2"></em>
26+
</a>
27+
</span>
28+
{%- endif -%}
29+
<span>
30+
<a href="https://traffic.libsyn.com/lescastcodeurs/LesCastCodeurs-Episode-{{post.episode}}.mp3" class="d-inline-flex align-items-center">
31+
<em class="bi bi-music-player music-player-black fs-2 mr-2"></em>
32+
</a>
33+
</span>
2234
<p class="card-text">{{ post.content }}</p>
2335
</div>
2436
</div>

_posts/2024-12-21-lcc-320-diataxis-la-methode-de-documentation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ team: 'Emmanuel Bernard, Guillaume Laforge, Vincent Massol, Antonio Goncalves, A
55
layout: blog-post
66
episode: 320
77
mp3_length: 40112855
8+
youtube: https://youtu.be/3RXAu0hHLbU
89
tweet: Diataxis, la méthode de documentation #diataxis #documentation
910
# tweet size: 91-93 -> 99-101 #######################################################################
1011
---

assets/css/style.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,4 @@ iframe {
147147
.rss-orange { color: #ff6600; }
148148
.mic-grey { color: #95a5a6; }
149149
.youtube-red { color: #ff0000; }
150+
.music-player-black { color: #000000; }

0 commit comments

Comments
 (0)