yefeme 0.8.7 → 0.8.9

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: 3c7317716ec9a0aebf898f16c054534d4d1600bdc9965e5c2876fdee545461ea
4
- data.tar.gz: 43baa2e2347b94d9fe6cd6db04ce537faa7dfc2b8ac7074d99edf0cd6a4b4af2
3
+ metadata.gz: bbce7b62320b843aa7f3d3bf7b7d733a2ad22b2dfe02127673a7bd5f09ff6d7c
4
+ data.tar.gz: 7a6707abaefe1bf323fb5200204bcf03f0aa97d5c03504cbb376087540a93144
5
5
  SHA512:
6
- metadata.gz: 398591c9a678dd1269ff117014dc7cfab2616cb66c7a09db706ebe4978365dfdb129a45201eaffcf55703edc94c12842b54c5f72298d948170c057cef8569816
7
- data.tar.gz: c3364c44ad14960d18d85c64d6c7ee7bbc2734b83701295d7edb2ee7af6acf28788b9f9cee2e7d1aabf1d328c76e4f92ca6432ceb81d4a37a40ca7fe66477e58
6
+ metadata.gz: 75afa28eb150f953b963149929cb45f24a319a5435b4663d5e95adc0ed8de5b95a191f884a7b02ff6c032423ed689283453d93291340fee4f90b0f1de21b640d
7
+ data.tar.gz: 4f19e3f39202e576af151846dbb4c835c4f229b811bd9073183dde773e4b491f21e61ed9209eb1956a625872f80af11f928ae3f23f749aa32f0501e7f8ed46b9
data/README.md CHANGED
@@ -65,6 +65,7 @@ Each document in `_shoots` should use the `shoot` layout and provide a title, da
65
65
  layout: shoot
66
66
  title: Marseille
67
67
  date: 2025-11-25
68
+ cover: image-id-two
68
69
  images:
69
70
  - id: image-id-one
70
71
  width: 1366
@@ -77,6 +78,8 @@ images:
77
78
  ---
78
79
  ```
79
80
 
81
+ The optional `cover` field selects the Cloudflare image ID used for the shoot's link preview (`og:image`). It defaults to the first image and uses the configured `xl` variant.
82
+
80
83
  The theme decodes each BlurHash in the browser and displays it as an immediate placeholder behind the full thumbnail. Selecting a thumbnail opens the shoot in a full-screen lightbox with button, keyboard, horizontal swipe, and native pinch-to-zoom navigation. Scalar image IDs remain supported for existing sites, but do not provide intrinsic sizing or placeholder information.
81
84
 
82
85
  ## Contributing
@@ -87,6 +90,8 @@ Bug reports and pull requests are welcome. This project is intended to be a safe
87
90
 
88
91
  To set up your environment to develop this theme, run `bundle install`.
89
92
 
93
+ Check cover metadata with `bundle exec ruby test_cover.rb`.
94
+
90
95
  Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
91
96
 
92
97
  Gem releases are built from a clean checkout and include the tracked theme layouts, includes, Sass, and browser assets selected by `yefeme.gemspec`. The release workflow verifies the package and rejects site content from `_posts` or `_shoots`.
data/_includes/head.html CHANGED
@@ -24,9 +24,10 @@
24
24
  <meta name="twitter:site" content="@{{ site.twitter_username }}">
25
25
  {% endif %}
26
26
 
27
- {%- if page.extra_meta %}
28
- {{ page.extra_meta }}
29
- {%- endif %}
27
+ {% assign cover = page.cover | default: page.images.first.id | default: page.images.first %}
28
+ {% if cover and site.cf_images_account_hash and site.cf_images_variants.xl %}
29
+ <meta property="og:image" content="https://imagedelivery.net/{{ site.cf_images_account_hash | escape }}/{{ cover | escape }}/{{ site.cf_images_variants.xl | escape }}">
30
+ {% endif %}
30
31
 
31
32
  <link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">
32
33
  <link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16">
data/assets/lightbox.js CHANGED
@@ -111,7 +111,6 @@
111
111
  this.previousButton.addEventListener("click", this.previous);
112
112
  this.nextButton.addEventListener("click", this.next);
113
113
  this.closeButton.addEventListener("click", this.close);
114
- this.modal.addEventListener("click", this.close);
115
114
  this.track.addEventListener("scroll", this.onScroll, { passive: true });
116
115
  document.addEventListener("keydown", this.onKeydown);
117
116
  window.addEventListener("resize", this.onResize, { passive: true });
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yefeme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.7
4
+ version: 0.8.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yefim Vedernikoff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-08-29 00:00:00.000000000 Z
11
+ date: 2026-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll