jekyll_dynamic_assets 1.3.0 → 1.3.1
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 -1
- data/README.md +5 -5
- data/lib/jekyll_dynamic_assets/assets_tag.rb +1 -1
- data/lib/jekyll_dynamic_assets/processor.rb +2 -2
- data/lib/jekyll_dynamic_assets/version.rb +1 -1
- data/lib/jekyll_dynamic_assets.rb +1 -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: d7d06ed33712acef909612d035b42222cd8fc22b36bcefea690ae70cfd9c726f
|
4
|
+
data.tar.gz: 3b3921babce062c676c8975744b4c1a92bdfc890b653a2ff42603a10375aa16d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e1b86a78eb6c456679a2c40a0111800421f95ce08bfc19bb9012f815ffc1e638f045aa50a115c7a4db03b00b14e75929628a022c685ff72d98326efd7ceb4f5
|
7
|
+
data.tar.gz: be1d51b909c2821c8e35aba5c99db998a7dfc91fd22862b2c442ca10667a194ed114976188e002329750a15d4b3ce1de9e696c62a6979ed326d932b6cb61432f
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -7,7 +7,7 @@ JekyllDynamicAssets is a powerful Jekyll plugin for dynamic, flexible, and DRY a
|
|
7
7
|
- Use asset presets for reusable asset groups
|
8
8
|
- Pre-defined and overrideable formats and sources for common assets
|
9
9
|
- Auto, Select, and Inline formats and sources
|
10
|
-
- Liquid tag `{%
|
10
|
+
- Liquid tag `{% inject_assets %}` for easy asset injection in templates and includes
|
11
11
|
- Error reporting for missing presets and formats
|
12
12
|
- Absolute/relative URL support
|
13
13
|
- Supports all head assets: CSS, JS, module JS, fonts, icons, JSON, etc.
|
@@ -45,7 +45,7 @@ bundle install
|
|
45
45
|
### 1. Configure your assets in `config.yml`
|
46
46
|
|
47
47
|
```yaml
|
48
|
-
|
48
|
+
dynamic_assets:
|
49
49
|
master:
|
50
50
|
- main.css
|
51
51
|
- main.js
|
@@ -70,7 +70,7 @@ assets:
|
|
70
70
|
If all your assets are in the same folder, you can simply do:
|
71
71
|
|
72
72
|
```yaml
|
73
|
-
|
73
|
+
dynamic_assets:
|
74
74
|
source: /asset_folder
|
75
75
|
```
|
76
76
|
|
@@ -81,7 +81,7 @@ assets:
|
|
81
81
|
In your page or post front matter:
|
82
82
|
|
83
83
|
```yaml
|
84
|
-
|
84
|
+
dynamic_assets:
|
85
85
|
files: # See Asset Definition Syntax below
|
86
86
|
- manual.css
|
87
87
|
- onscreen.css::screen-css
|
@@ -100,7 +100,7 @@ Use the Liquid tag where you want the assets to appear (typically in your `<head
|
|
100
100
|
```liquid
|
101
101
|
<head>
|
102
102
|
<!-- other tags like meta etc. -->
|
103
|
-
{%
|
103
|
+
{% inject_assets %}
|
104
104
|
</head>
|
105
105
|
```
|
106
106
|
|
@@ -4,9 +4,9 @@ module JekyllDynamicAssets
|
|
4
4
|
# Asset link generator
|
5
5
|
class Processor
|
6
6
|
def initialize(site:, page:)
|
7
|
-
@config = site.config["
|
7
|
+
@config = site.config["dynamic_assets"] || {}
|
8
8
|
@page = page
|
9
|
-
@page_config = page["
|
9
|
+
@page_config = page["dynamic_assets"] || {}
|
10
10
|
@path = @page["path"] || @page["relative_path"] || "unknown"
|
11
11
|
|
12
12
|
sub_configs(site:)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll_dynamic_assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- M. Umar Shahbaz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-06-
|
11
|
+
date: 2025-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|