al_folio_core 1.0.9 → 1.0.10
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/CHANGELOG.md +5 -0
- data/_includes/figure.liquid +1 -1
- data/_layouts/bib.liquid +4 -4
- data/lib/al_folio_core/version.rb +1 -1
- data/lib/al_folio_core.rb +12 -3
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 66296a195e71912cdad50df02367aa43eaebb2785bf798e5b48686f88631f6cb
|
|
4
|
+
data.tar.gz: 82ce88268a763a8097bc774152be1294cb4ff0dd6643a4ac073fceb7d8c1db87
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 48dc2c8c89e9595b00f83a3e94cd186aa6808bf24c8c01dc6d9e05a60b0fc549288d042e8276c5e437c686f4cab58698cc394c6c092b82ca560761ca5107049f
|
|
7
|
+
data.tar.gz: db650602bb7e07b752485a5cbda5bab565e828dd6333acefba0df1ecfe74e95ca4b95dfcfd0932cac8875a13acb14d001234413d0988577f30166cbb25943cae
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.10 - 2026-06-01
|
|
4
|
+
|
|
5
|
+
- Replaced leftover jQuery `$(...)` calls with vanilla JS in the publications "N more authors" expander (`_layouts/bib.liquid`) and the responsive-image `onerror` fallback (`_includes/figure.liquid`). Since jQuery was removed in v1 these threw `ReferenceError: $ is not defined` at runtime — the author list never expanded and the broken-image fallback never ran.
|
|
6
|
+
- Fixed `main.css` cache-busting. The theme's `bust_css_cache` digested a non-existent `assets/_sass` directory and therefore always produced the MD5 of an empty string, so `main.css`'s `?v=` query never changed and returning visitors could be served stale CSS after a theme/color update. It now digests the theme's actual `_sass` partials.
|
|
7
|
+
|
|
3
8
|
## 1.0.9 - 2026-05-24
|
|
4
9
|
|
|
5
10
|
- Retried interrupted `jekyll-minifier` file writes so Jupyter notebook conversion does not fail builds with transient `Errno::EINTR`.
|
data/_includes/figure.liquid
CHANGED
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
{% elsif site.lazy_loading_images %}
|
|
77
77
|
loading="lazy"
|
|
78
78
|
{% endif %}
|
|
79
|
-
onerror="this.onerror=null;
|
|
79
|
+
onerror="this.onerror=null; document.querySelectorAll('.responsive-img-srcset').forEach(function (n) { n.remove(); });"
|
|
80
80
|
>
|
|
81
81
|
</picture>
|
|
82
82
|
|
data/_layouts/bib.liquid
CHANGED
|
@@ -121,12 +121,12 @@
|
|
|
121
121
|
class="more-authors"
|
|
122
122
|
title="click to view {{ more_authors_hide }}"
|
|
123
123
|
onclick="
|
|
124
|
-
var element =
|
|
125
|
-
element.
|
|
126
|
-
var more_authors_text = element.
|
|
124
|
+
var element = this;
|
|
125
|
+
element.setAttribute('title', '');
|
|
126
|
+
var more_authors_text = element.textContent == '{{ more_authors_hide }}' ? '{{ more_authors_show }}' : '{{ more_authors_hide }}';
|
|
127
127
|
var cursorPosition = 0;
|
|
128
128
|
var textAdder = setInterval(function(){
|
|
129
|
-
element.
|
|
129
|
+
element.innerHTML = more_authors_text.substring(0, cursorPosition + 1);
|
|
130
130
|
if (++cursorPosition == more_authors_text.length){
|
|
131
131
|
clearInterval(textAdder);
|
|
132
132
|
}
|
data/lib/al_folio_core.rb
CHANGED
|
@@ -100,14 +100,23 @@ module AlFolioCore
|
|
|
100
100
|
|
|
101
101
|
def directory_files_content
|
|
102
102
|
local_target_path = File.join(directory, "**", "*")
|
|
103
|
-
|
|
103
|
+
# jekyll-cache-bust calls `bust_css_cache` with directory "assets/_sass",
|
|
104
|
+
# but the theme ships its Sass partials at "_sass" (the gem root), not
|
|
105
|
+
# under "assets/". Without this mapping the glob matches nothing and the
|
|
106
|
+
# cache-bust digest is the MD5 of an empty string, so main.css is never
|
|
107
|
+
# re-versioned when the theme styles change. Resolve both the literal
|
|
108
|
+
# configured path and the "assets/"-stripped theme location.
|
|
109
|
+
theme_relative_path = File.join(directory.sub(%r{\Aassets/}, ""), "**", "*")
|
|
104
110
|
|
|
105
111
|
files = Dir[local_target_path]
|
|
106
|
-
files = Dir[
|
|
112
|
+
files = Dir[File.join(AlFolioCore::THEME_ROOT, local_target_path)] if files.empty?
|
|
113
|
+
files = Dir[File.join(AlFolioCore::THEME_ROOT, theme_relative_path)] if files.empty?
|
|
107
114
|
if files.empty?
|
|
108
115
|
files = Gem.path.flat_map do |gem_path|
|
|
109
116
|
Dir[File.join(gem_path, "bundler", "gems", "*", local_target_path)] +
|
|
110
|
-
Dir[File.join(gem_path, "gems", "*", local_target_path)]
|
|
117
|
+
Dir[File.join(gem_path, "gems", "*", local_target_path)] +
|
|
118
|
+
Dir[File.join(gem_path, "bundler", "gems", "*", theme_relative_path)] +
|
|
119
|
+
Dir[File.join(gem_path, "gems", "*", theme_relative_path)]
|
|
111
120
|
end
|
|
112
121
|
end
|
|
113
122
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: al_folio_core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- al-folio maintainers
|
|
@@ -58,7 +58,7 @@ dependencies:
|
|
|
58
58
|
version: '2.0'
|
|
59
59
|
- - "<"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '
|
|
61
|
+
version: '5.0'
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -68,7 +68,7 @@ dependencies:
|
|
|
68
68
|
version: '2.0'
|
|
69
69
|
- - "<"
|
|
70
70
|
- !ruby/object:Gem::Version
|
|
71
|
-
version: '
|
|
71
|
+
version: '5.0'
|
|
72
72
|
- !ruby/object:Gem::Dependency
|
|
73
73
|
name: rake
|
|
74
74
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
212
212
|
- !ruby/object:Gem::Version
|
|
213
213
|
version: '0'
|
|
214
214
|
requirements: []
|
|
215
|
-
rubygems_version: 4.0.
|
|
215
|
+
rubygems_version: 4.0.10
|
|
216
216
|
specification_version: 4
|
|
217
217
|
summary: Core runtime plugin for al-folio v1.x
|
|
218
218
|
test_files: []
|