whiteblog-theme 0.0.19 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/gallery +47 -0
  3. data/_includes/video +10 -0
  4. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54c15bef2cffc263dbda2d856fcf65b52925630c79b7928aabf0a22a78df5e60
4
- data.tar.gz: ce9e6bc7de58497c4bc50774d25a81d08a31d141395997559a9ba9e1e7fcc2bd
3
+ metadata.gz: 15bcb8eac8e1218457e74a8e2bff77b012042da5ba41730c9de8c268d55bb6a9
4
+ data.tar.gz: 53d0f5d2713912966eb4a3753bda17a95d432b60da6a908da51b6d84161863f8
5
5
  SHA512:
6
- metadata.gz: 8520c395fee0a2a28707ae7fb68be17cbc5332223343449ec7c2dfa4b5b14d1d8b54490ce959224388f29c0d7882b5bdf03ddbc9797f1560c748d2a13b01315e
7
- data.tar.gz: 44a1e96fa3883bdb4ddbf3e69b06439fb5e017f7ad0b620d89faa8540fd6f223cb9dcb418ff7a2a2aeef5300009dc4dd8377cddca0480839eda8e85775a2e818
6
+ metadata.gz: 559c658ff801ada7a8d800f9ca782557e5b98559a179775ecfd593bbbf817e6ce22748f8a312f7c3fb86f69c35f57e0d4b22f1c7c2dd4e34210f34504180f2b6
7
+ data.tar.gz: 5cbdd7aea52e9392689e33bee69967b562a2ee0a39e8fcdeb29ba87a8ab6d07dff8e4bcbf9544bcbdbd6cdbbb96ba9c1755f140496b43b7c353f3d6deae19853
data/_includes/gallery ADDED
@@ -0,0 +1,47 @@
1
+ {% if include.id %}
2
+ {% assign gallery = page[include.id] %}
3
+ {% else %}
4
+ {% assign gallery = page.gallery %}
5
+ {% endif %}
6
+
7
+ {% if gallery.size == 2 %}
8
+ {% assign gallery_layout = 'half' %}
9
+ {% elsif gallery.size >= 3 %}
10
+ {% assign gallery_layout = 'third' %}
11
+ {% else %}
12
+ {% assign gallery_layout = '' %}
13
+ {% endif %}
14
+
15
+ <figure class="{{ gallery_layout }} {{ include.class }}">
16
+ {% for img in gallery %}
17
+ {% if img.url %}
18
+ <a href=
19
+ {% if img.url contains "://" %}
20
+ "{{ img.url }}"
21
+ {% else %}
22
+ "{{ img.url | absolute_url }}"
23
+ {% endif %}
24
+ {% if img.title %}title="{{ img.title }}"{% endif %}
25
+ >
26
+ <img src=
27
+ {% if img.image_path contains "://" %}
28
+ "{{ img.image_path }}"
29
+ {% else %}
30
+ "{{ img.image_path | absolute_url }}"
31
+ {% endif %}
32
+ alt="{% if img.alt %}{{ img.alt }}{% endif %}">
33
+ </a>
34
+ {% else %}
35
+ <img src=
36
+ {% if img.image_path contains "://" %}
37
+ "{{ img.image_path }}"
38
+ {% else %}
39
+ "{{ img.image_path | absolute_url }}"
40
+ {% endif %}
41
+ alt="{% if img.alt %}{{ img.alt }}{% endif %}">
42
+ {% endif %}
43
+ {% endfor %}
44
+ {% if include.caption %}
45
+ <figcaption>{{ include.caption | markdownify | remove: "<p>" | remove: "</p>" }}</figcaption>
46
+ {% endif %}
47
+ </figure>
data/_includes/video ADDED
@@ -0,0 +1,10 @@
1
+ {% capture video_id %}{{ include.id }}{% endcapture %}
2
+ {% capture video_provider %}{{ include.provider }}{% endcapture %}
3
+
4
+ <div>
5
+ {% if video_provider == "vimeo" %}
6
+ <iframe src="https://player.vimeo.com/video/{{ video_id }}" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
7
+ {% elsif video_provider == "youtube" %}
8
+ <iframe src="https://www.youtube.com/embed/{{ video_id }}" width="560" height="315" frameborder="0" allowfullscreen></iframe>
9
+ {% endif %}
10
+ </div>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whiteblog-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19
4
+ version: 0.0.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Silva
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-19 00:00:00.000000000 Z
11
+ date: 2025-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -79,10 +79,12 @@ files:
79
79
  - _includes/backtotop.html
80
80
  - _includes/comments-providers/disqus.html
81
81
  - _includes/footer.html
82
+ - _includes/gallery
82
83
  - _includes/head.html
83
84
  - _includes/header.html
84
85
  - _includes/scripts.html
85
86
  - _includes/sharepost.html
87
+ - _includes/video
86
88
  - _layouts/allposts.html
87
89
  - _layouts/categories.html
88
90
  - _layouts/default.html