Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit acb111b

Browse files
authored
Merge pull request #42 from chicio/images-caption 🚀
Images caption
2 parents c7c72a8 + b8c1ea8 commit acb111b

File tree

107 files changed

+3951
-3723
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+3951
-3723
lines changed

=

Whitespace-only changes.
38.4 KB
Loading
38.4 KB
Loading
19.9 KB
Loading
19.9 KB
Loading
47.5 KB
Loading
47.5 KB
Loading

_css/blog-post.scss

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
}
88
}
99

10+
figure {
11+
figcaption {
12+
@include theme('color', $secondary-text-color);
13+
font-size: 14px;
14+
}
15+
}
16+
1017
.blog-post-title {
1118
@include theme('color', $accent-color);
1219
margin-bottom: 5px;
@@ -29,12 +36,6 @@
2936
@include theme('color', $accent-color);
3037
}
3138

32-
img {
33-
max-width: 100%;
34-
display: block;
35-
margin: 20px auto;
36-
}
37-
3839
.emoji {
3940
margin: auto;
4041
display: inline;

_data/webpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
hash: fd5ecb19c9664af2e861
1+
hash: aaf187c9d8fe249f4fd7

_includes/blog-lazy-image.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{% capture description %}{{ include.description | replace: ' ', '-' | downcase }}{% endcapture %}
2-
{% capture customClassAndBlogClass %}{{ include.class | default: '' | append: ' blog-image' }}{% endcapture %}
3-
{% include lazy-image.html id=description alt=include.description fill="BDBDBD" src=include.src width=include.width height=include.height class=customClassAndBlogClass %}
2+
{% capture customClassAndBlogClass %}{{ include.class | default: '' | append: ' figure-img img-fluid d-block mx-auto rounded blog-image' }}{% endcapture %}
3+
<figure class="d-block mx-auto">
4+
{% include lazy-image.html alt=include.description fill="BDBDBD" src=include.src width=include.width height=include.height class=customClassAndBlogClass %}
5+
<figcaption class="figure-caption text-center font-italic font-weight-light">{{ include.description }}</figcaption>
6+
</figure>

0 commit comments

Comments
 (0)