al_folio_core 1.0.13 → 1.0.14

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: 5c7af4d15f3ac3a3341c5f93a44ceec9178e8d8740e29f542d8145775fd8f27c
4
- data.tar.gz: 51f4c6ceeee001bedd6b463947fd42dac457dfdfa93c91656315e527b5a2d862
3
+ metadata.gz: f2f1858ae1303cd5ae1f61fde71d9222ca59d4df20d37cdce083789287f16eca
4
+ data.tar.gz: 7bc84f2d2effc1dd18130d089d55d782c3262dd6fb86ae53f7f2314f0d30ba8c
5
5
  SHA512:
6
- metadata.gz: ffccb7a00545a55be888dc7abef149411f953459b79f0d936fb56abacae0024a35dd1593e6033403268c67d2787d70414b7f27f32a47102ad85749b536af9ab7
7
- data.tar.gz: c55ecc6d944ee229b414fee4cb3e11d5b94fb0cd91494430ce3e702730738dbdf7930db04b013c5eac87c7a63d930d7d417fb1865e28fe4290a95f3374949436
6
+ metadata.gz: db52abe776a109c94b27ecce1f18b11f334f159dcc431470f2b036fd9a332824481d39f9b522c111e75eaba63c7f9cad50a91fa326bb3f9b1933deddb67e3c35
7
+ data.tar.gz: '008b6d4f07a0af5bee8315559fa4846b0ccef27128dc3329ebefb5d4e4b85ca0908845aaab4d82ff4fa0bdec2c63a6212d8e86ec1beb6e9862976c224b3aefd4'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.14 - 2026-08-02
4
+
5
+ - Added invocation hooks for three new plugin gems: `al_rtl`, `al_email_protect` and `al_marimo`. Each is a parse-safe wrapper under `_includes/plugins/` called from `head.liquid`, `scripts.liquid` or `default.liquid`, and every call sits inside a `site.plugins contains` guard — an unguarded custom tag is a parse error on any site that has not installed the gem, which fails the whole build rather than just the feature.
6
+ - `al_rtl` needs `dir` on the `<html>` element, which is what the browser's bidi algorithm, CSS logical properties and Tailwind's `rtl:` variant key off; a wrapper `div` would leave the navbar, footer and scrollbar placement laid out left-to-right. The attributes are captured into a variable rather than the tag being wrapped in `{% if %}`, because a conditional there stops Prettier seeing a static root element and it re-indents the entire document body. Sites without `al_rtl` get byte-identical output from the fallback branch.
7
+ - Added `.gitignore`. The repo had none, so `npm ci` (needed for the prettier lint) left `node_modules` addable and a routine `git add -A` swept ~208k lines of vendored JS into a commit.
8
+
3
9
  ## 1.0.13 - 2026-07-29
4
10
 
5
11
  - Added an `apple-touch-icon` link to `_includes/head.liquid`. Without it, "Add to Home Screen" on iOS falls back to a screenshot of the page instead of the site icon, because Safari only reads `rel="apple-touch-icon"` for that thumbnail — it never uses `rel="shortcut icon"`. The link is emitted only when a raster asset actually exists: a new optional `apple_touch_icon` config key (resolved under `/assets/img/` like `icon`, or used verbatim when it is a rooted path or an absolute URL), otherwise an `icon` that is itself a `.png`/`.jpg`/`.jpeg` file. The default emoji `icon` renders as an inline SVG data URI, which Safari ignores for touch icons, so in that case nothing is emitted rather than a link that would 404. Apple's recommended asset is a 180x180 PNG. Fixes alshedivat/al-folio#2774.
@@ -191,3 +191,18 @@
191
191
  <!-- Cookie Consent -->
192
192
  {% include plugins/al_cookie_styles.liquid %}
193
193
  {% endif %}
194
+
195
+ {% if site.plugins contains 'al_rtl' %}
196
+ <!-- Right-to-left support -->
197
+ {% include plugins/al_rtl_styles.liquid %}
198
+ {% endif %}
199
+
200
+ {% if site.protect_email and site.plugins contains 'al_email_protect' %}
201
+ <!-- Email obfuscation -->
202
+ {% include plugins/al_email_protect_styles.liquid %}
203
+ {% endif %}
204
+
205
+ {% if page.marimo and site.plugins contains 'al_marimo' %}
206
+ <!-- Marimo notebooks -->
207
+ {% include plugins/al_marimo_styles.liquid %}
208
+ {% endif %}
@@ -0,0 +1,4 @@
1
+ {% comment %}
2
+ Parse-safe wrapper for al_email_protect custom tag.
3
+ {% endcomment %}
4
+ {% al_email_protect_scripts %}
@@ -0,0 +1,4 @@
1
+ {% comment %}
2
+ Parse-safe wrapper for al_email_protect custom tag.
3
+ {% endcomment %}
4
+ {% al_email_protect_styles %}
@@ -0,0 +1,4 @@
1
+ {% comment %}
2
+ Parse-safe wrapper for al_marimo custom tag.
3
+ {% endcomment %}
4
+ {% al_marimo_scripts %}
@@ -0,0 +1,4 @@
1
+ {% comment %}
2
+ Parse-safe wrapper for al_marimo custom tag.
3
+ {% endcomment %}
4
+ {% al_marimo_styles %}
@@ -0,0 +1,7 @@
1
+ {%- comment -%}
2
+ Parse-safe wrapper for al_rtl custom tag.
3
+
4
+ Whitespace-controlled: the output of this include lands *inside* the <html>
5
+ tag, so a stray newline would sit between the tag name and its attributes.
6
+ {%- endcomment -%}
7
+ {%- al_rtl_html_attrs -%}
@@ -0,0 +1,4 @@
1
+ {% comment %}
2
+ Parse-safe wrapper for al_rtl custom tag.
3
+ {% endcomment %}
4
+ {% al_rtl_styles %}
@@ -142,3 +142,13 @@
142
142
  {% include plugins/al_newsletter_scripts.liquid %}
143
143
  {% endif %}
144
144
  {% endif %}
145
+
146
+ {% if site.protect_email and site.plugins contains 'al_email_protect' %}
147
+ <!-- Email obfuscation -->
148
+ {% include plugins/al_email_protect_scripts.liquid %}
149
+ {% endif %}
150
+
151
+ {% if page.marimo and site.plugins contains 'al_marimo' %}
152
+ <!-- Marimo notebooks -->
153
+ {% include plugins/al_marimo_scripts.liquid %}
154
+ {% endif %}
data/_layouts/bib.liquid CHANGED
@@ -397,7 +397,7 @@
397
397
  <div class="bibtex hidden">
398
398
  {% highlight bibtex %}
399
399
  {{- entry.bibtex | hideCustomBibtex -}}
400
- {% endhighlight %}
400
+ {% endhighlight %}
401
401
  </div>
402
402
  {% endif %}
403
403
 
@@ -1,5 +1,22 @@
1
1
  <!doctype html>
2
- <html lang="{{ site.lang }}">
2
+ {%- comment -%}
3
+ al_rtl owns the language and direction attributes when it is installed, because
4
+ `dir` has to sit on <html> for the browser's bidi handling, CSS logical
5
+ properties and Tailwind's rtl: variant to apply to the whole document.
6
+
7
+ Captured into a variable rather than wrapping the <html> tag in a conditional:
8
+ a conditional there stops the tag being a single static element, and Prettier
9
+ then re-indents the entire document body. The guard keeps this parse-safe —
10
+ without the plugin the tag does not exist and Liquid fails on every page.
11
+ {%- endcomment -%}
12
+ {%- capture html_attributes -%}
13
+ {%- if site.plugins contains 'al_rtl' -%}
14
+ {%- include plugins/al_rtl_html_attrs.liquid -%}
15
+ {%- else -%}
16
+ lang="{{ site.lang }}"
17
+ {%- endif -%}
18
+ {%- endcapture -%}
19
+ <html {{ html_attributes }}>
3
20
  <!-- Head -->
4
21
  <head>
5
22
  {% if page.redirect %}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AlFolioCore
4
- VERSION = "1.0.13"
4
+ VERSION = "1.0.14"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: al_folio_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.13
4
+ version: 1.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - al-folio maintainers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-07-30 00:00:00.000000000 Z
11
+ date: 2026-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -117,15 +117,21 @@ files:
117
117
  - _includes/plugins/al_comments.liquid
118
118
  - _includes/plugins/al_cookie_scripts.liquid
119
119
  - _includes/plugins/al_cookie_styles.liquid
120
+ - _includes/plugins/al_email_protect_scripts.liquid
121
+ - _includes/plugins/al_email_protect_styles.liquid
120
122
  - _includes/plugins/al_icons_styles.liquid
121
123
  - _includes/plugins/al_img_tools_scripts.liquid
122
124
  - _includes/plugins/al_img_tools_styles.liquid
125
+ - _includes/plugins/al_marimo_scripts.liquid
126
+ - _includes/plugins/al_marimo_styles.liquid
123
127
  - _includes/plugins/al_math_scripts.liquid
124
128
  - _includes/plugins/al_math_styles.liquid
125
129
  - _includes/plugins/al_newsletter_form_center.liquid
126
130
  - _includes/plugins/al_newsletter_form_center_margin.liquid
127
131
  - _includes/plugins/al_newsletter_form_left.liquid
128
132
  - _includes/plugins/al_newsletter_scripts.liquid
133
+ - _includes/plugins/al_rtl_html_attrs.liquid
134
+ - _includes/plugins/al_rtl_styles.liquid
129
135
  - _includes/plugins/al_search_assets.liquid
130
136
  - _includes/projects.liquid
131
137
  - _includes/projects_horizontal.liquid