word-games-theme 2.1.5 → 2.1.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bdd9d6421b72e514d1f1ad3bda8aec1764628ab7681e1e9c16894eca2a8d827b
4
- data.tar.gz: f225f623c6e5aacec7db34608551da1ff76bb5afa3856106b27c06a59f1e13fb
3
+ metadata.gz: 3d1b9400e492b539bb902fc6d63633772f722ed4cd6bcf6544cfcea4df209b95
4
+ data.tar.gz: 616fce728a7d29cb85cea08991418da87233980341eea9feb0a33453b7c3e4b4
5
5
  SHA512:
6
- metadata.gz: ff7f6648d7a68728b858598eb90e323a04c125b9d32c0cb867fa90077ee962e51c1ed9bc1427a89597a3c6e7280c3ac9f6ea2c2978e387f03de1e4837e2fd47e
7
- data.tar.gz: f275d63fb7db7f35cc44b68be7fb3eb9d5cea78b5e01fd4569e5e92988b64af02bdf5ceb1fc81b231ef17755fae9ab3c7ed6b92eccb26c92dd9385ebd489dba9
6
+ metadata.gz: b1aa1c2a703101f232e48f51bdc138aefd489424e3bcb1ec003324f85bb0373748acfcf87cf43b54c8e1aab0fd0e6079438420ee64f876cc4884b06efc1b7898
7
+ data.tar.gz: ee6ece6b52c7b6570841552f67e3904b5ea21064e212aa684526a0c6ffb8aafe23a2052bea924fd01aa33a7b8d01e1f6fd0bc023d7b63f5961fb6e2e46214f60
@@ -62,7 +62,7 @@
62
62
  }
63
63
  ],
64
64
  "HOW_TO_CONTENT": {
65
- "YoutubeVideoUrl": "https://www.youtube.com/watch?v=KvG92NJQssk&ab_channel=WordsWithLettersOrg",
65
+ "YoutubeVideoUrl": "https://youtu.be/KvG92NJQssk?si=DUjC9DBi3MHZbvFW",
66
66
  "logoImageUrl": "/assets/images/check.svg",
67
67
  "heading": "How to set alarm for $variable minutes:",
68
68
  "steps": [
data/_includes/howto.html CHANGED
@@ -13,12 +13,18 @@
13
13
  {%- if dataToShow.HOW_TO_CONTENT.YoutubeVideoUrl.size > 0 -%}
14
14
  <div class="how-to-video-wrapper">
15
15
  {% assign video_url = dataToShow.HOW_TO_CONTENT.YoutubeVideoUrl %}
16
+ {% assign video_id = "" %}
17
+ {% if video_url contains "youtu.be/" %}
18
+ {% assign parts = video_url | split: "/" %}
19
+ {% assign video_id = parts[3] %}
20
+ {% elsif video_url contains "youtube.com/watch" %}
16
21
  {% assign params = video_url | split: "?" | last | split: "&" %}
17
22
  {% for param in params %}
18
23
  {% if param contains "v=" %}
19
24
  {% assign video_id = param | split: "=" | last %}
20
25
  {% endif %}
21
26
  {% endfor %}
27
+ {% endif %}
22
28
  {%- if site.ezoicAds -%}
23
29
  <iframe class="youtubeVideoPlayer mb-5" width="400" height="315"
24
30
  src="https://www.youtube.com/embed/{{video_id}}?autoplay=1&mute=1" allowfullscreen>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: word-games-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.5
4
+ version: 2.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - manpreet-appscms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-28 00:00:00.000000000 Z
11
+ date: 2023-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll