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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f4102ebcc09a9c91ad535a06179560476217a410d75511df6fd78762b2227c5
4
- data.tar.gz: 1255d4fc1b4de77e09c30d9d388fa7f0dd6f75c0ba65a1ef3c35ecc3314cbf75
3
+ metadata.gz: d7d06ed33712acef909612d035b42222cd8fc22b36bcefea690ae70cfd9c726f
4
+ data.tar.gz: 3b3921babce062c676c8975744b4c1a92bdfc890b653a2ff42603a10375aa16d
5
5
  SHA512:
6
- metadata.gz: 5543ce35aeb57e5aa44624e89dbb2393863fd1b80e3d1d1ac1394dd6463cc428f6756b4f416d447c629797f92d00b4d37128feb2eec0ca2ced1aa3ebab69f8b3
7
- data.tar.gz: 3586a4f15eaabc0acdfbffe6e8080069f809f6f64ad5c71e2f56a801b3a352d85b9db6d62f44fee3015c1351d6aad6b85d975a7909430e31a7303b855379774d
6
+ metadata.gz: 1e1b86a78eb6c456679a2c40a0111800421f95ce08bfc19bb9012f815ffc1e638f045aa50a115c7a4db03b00b14e75929628a022c685ff72d98326efd7ceb4f5
7
+ data.tar.gz: be1d51b909c2821c8e35aba5c99db998a7dfc91fd22862b2c442ca10667a194ed114976188e002329750a15d4b3ce1de9e696c62a6979ed326d932b6cb61432f
data/CHANGELOG.md CHANGED
@@ -44,4 +44,8 @@
44
44
  - ttf >> fonts
45
45
  - otf >> fonts
46
46
  - Updated Selection logic, added inline definition
47
- - Added Absolute URL
47
+ - Added Absolute URL
48
+
49
+ ## [1.3.1] - 2025-06-08
50
+
51
+ - Resolved conflicts with `jekyll-assets`
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 `{% assets %}` for easy asset injection in templates and includes
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
- assets:
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
- assets:
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
- assets:
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
- {% assets %}
103
+ {% inject_assets %}
104
104
  </head>
105
105
  ```
106
106
 
@@ -3,7 +3,7 @@
3
3
  require "liquid"
4
4
 
5
5
  module JekyllDynamicAssets
6
- # {% assets %} tag
6
+ # {% inject_assets %} tag
7
7
  class AssetsTag < Liquid::Tag
8
8
  def render(context)
9
9
  site = context.registers[:site]
@@ -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["assets"] || {}
7
+ @config = site.config["dynamic_assets"] || {}
8
8
  @page = page
9
- @page_config = page["assets"] || {}
9
+ @page_config = page["dynamic_assets"] || {}
10
10
  @path = @page["path"] || @page["relative_path"] || "unknown"
11
11
 
12
12
  sub_configs(site:)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JekyllDynamicAssets
4
- VERSION = "1.3.0"
4
+ VERSION = "1.3.1"
5
5
  end
@@ -10,4 +10,4 @@ module JekyllDynamicAssets
10
10
  class Error < StandardError; end
11
11
  end
12
12
 
13
- Liquid::Template.register_tag("assets", JekyllDynamicAssets::AssetsTag)
13
+ Liquid::Template.register_tag("inject_assets", JekyllDynamicAssets::AssetsTag)
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.0
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-07 00:00:00.000000000 Z
11
+ date: 2025-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll