benjeto-jekyll-theme 0.3.0 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce56e14561fefa061a2c7d480f4591afedc620b4dea6cdbf3d1ffb1bd72e93c5
4
- data.tar.gz: 4e6829d98bafb40b0e2684eeee578499002b3ab28f6c784b32b0dca4c200bdba
3
+ metadata.gz: 2514ab7851137be300dd0b14ccda9aac43235bcccf22a78336994e48ed34b6f0
4
+ data.tar.gz: 8a830e00638a8ec9d8ecc99f41cdae7b69d6858313d32ead5a7780ebec4c29f4
5
5
  SHA512:
6
- metadata.gz: 8dc722fae29f65473592fbcfabc0e60c3a5959a1311478e25bea6bec1e747d15118e87446b4c8cda9a9173fa3c6b59f83a260e68a66883e636134bc97192c648
7
- data.tar.gz: 2a97bd14ee5757bdc5aa4ac5df3dc39b4f970c6a91079f425f179d64b2630d68bd15520740ba49a6b7ff45a8bf6caefbd568047396f816501ca2ec411cc10c58
6
+ metadata.gz: f481af5ecb63e0760e8be3492036a2d89494ab6d942bf1d9ffe53b02544cb1eeab60fb9ee5dfcfc761c3a9765b396383f04e8c88a609a023e686ea003865eee4
7
+ data.tar.gz: 9c5c7285353e6e4759a0057c0f0c87a24251d4fd69ae8d4aedd2e97837a2240144f1be71aa021cb88fec262fc5f1ea2cee6433052c51f7f96a5b3f7ec35dd0a2
data/_includes/image.html CHANGED
@@ -3,14 +3,20 @@
3
3
  <img src="{{ include.src | relative_url }}"
4
4
  {% if include.pixel == true %}class="pixel"{% endif %}
5
5
  {% if include.alt %}alt="{{ include.alt }}"{% endif %}>
6
+ {%- if include.caption or include.license %}
6
7
  <figcaption>
7
8
  {{ include.caption }}
8
- {% if include.license %}
9
+ {%- if include.license %}
9
10
  <br>
10
11
  <span class="license">
11
12
  {{ texts.image_license }}
12
- <a href="{{ include.license_url }}" target="_blank">{{ include.license }}</a>
13
+ {%- if include.license_url %}
14
+ <a href="{{ include.license_url }}" target="_blank">{{ include.license }}</a>
15
+ {%- else %}
16
+ {{ include.license }}
17
+ {%- endif %}
13
18
  </span>
14
- {% endif %}
19
+ {%- endif %}
15
20
  </figcaption>
21
+ {%- endif %}
16
22
  </figure>
@@ -2,7 +2,7 @@
2
2
  {%- assign title = include.title -%}
3
3
  {%- assign aspect = include.aspect | default: "16 / 9" -%}
4
4
  {%- if id -%}
5
- <iframe class="nicovideo" style="aspect-ratio: {{ aspect }}" src="https://embed.nicovideo.jp/watch/{{ id }}" title="{{ texts.nicovideo_title }}" allow="clipboard-write; encrypted-media; picture-in-picture; web-share" referrerpolicy="no-referrer" allowfullscreen sandbox="allow-scripts">
5
+ <iframe class="nicovideo" style="aspect-ratio: {{ aspect }}" src="https://embed.nicovideo.jp/watch/{{ id }}" title="{{ texts.nicovideo_title }}" allow="clipboard-write; encrypted-media; picture-in-picture; web-share" referrerpolicy="no-referrer" allowfullscreen sandbox="allow-scripts allow-same-origin">
6
6
  <a href="https://www.nicovideo.jp/watch/{{ id }}" target="_blank" rel="noopener noreferrer">{{ title | default: texts.nicovideo_link }}</a>
7
7
  </iframe>
8
8
  {%- endif -%}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: benjeto-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cizzuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-03 00:00:00.000000000 Z
11
+ date: 2024-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll