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 +4 -4
- data/README.md +5 -0
- data/_includes/head.html +4 -3
- data/assets/lightbox.js +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bbce7b62320b843aa7f3d3bf7b7d733a2ad22b2dfe02127673a7bd5f09ff6d7c
|
|
4
|
+
data.tar.gz: 7a6707abaefe1bf323fb5200204bcf03f0aa97d5c03504cbb376087540a93144
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
{
|
|
28
|
-
|
|
29
|
-
|
|
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.
|
|
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-
|
|
11
|
+
date: 2026-09-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|