Skip to content

Commit 17fdbdd

Browse files
committed
Merge remote-tracking branch 'upstream/master'
# Conflicts: # _config.yml # _posts/2019-08-08-write-a-new-post.md
2 parents 29b1204 + 4d6c788 commit 17fdbdd

File tree

4 files changed

+32
-3
lines changed

4 files changed

+32
-3
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ theme: jekyll-theme-chirpy
88
# otherwise, the layout language will use the default value of 'en'.
99
lang: ko-KR
1010

11-
# Change to your timezone › https://kevinnovak.github.io/Time-Zone-Picker
11+
# Change to your timezone › https://zones.arilyn.cc
1212
timezone: Asia/Seoul
1313

1414
# jekyll-seo-tag settings › https://github.com/jekyll/jekyll-seo-tag/blob/master/docs/usage.md

_includes/embed/audio.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{% endunless %}
1010

1111
<p>
12-
<audio class="embed-audio" controls>
12+
<audio class="embed-audio file" controls>
1313
{% assign extension = src | split: '.' | last %}
1414
{% assign types = extension | concat: types %}
1515

_includes/embed/spotify.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{% assign size = 352 %}
2+
{% assign theme = '' %}
3+
4+
{% if include.compact %}
5+
{% assign size = 152 %}
6+
{% endif %}
7+
8+
{% if include.dark %}
9+
{% assign theme = '?theme=0' %}
10+
{% endif %}
11+
12+
<iframe
13+
class="embed-audio spotify"
14+
src="https://open.spotify.com/embed/track/{{ include.id | append: theme }}"
15+
height="{{ size }}"
16+
frameBorder="0"
17+
allowfullscreen=""
18+
allowtransparency="true"
19+
allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture"
20+
loading="lazy"
21+
>
22+
</iframe>

_sass/base/_base.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,14 @@ main {
314314

315315
.embed-audio {
316316
width: 100%;
317-
display: block;
317+
318+
&.file {
319+
display: block;
320+
}
321+
322+
&.spotify {
323+
border-radius: 14px;
324+
}
318325

319326
@extend %img-caption;
320327
}

0 commit comments

Comments
 (0)