sutty-liquid 0.11.10 → 0.11.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/filters/social_network.rb +2 -1
- data/lib/jekyll/filters/yaml_to_scss.rb +13 -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: d557f17924a4468f376f2543a21499ea563d5f4056fa22b2bbab6b7c87deb9eb
|
4
|
+
data.tar.gz: 2295324bafca5933965489267331e2bededa581a1d8b247a13848c69e0f840f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 352ec53763d94689cc54cce696557b6f84ad0ca6c56a9c045c13b7048a32940c64769c0323420edc859b10c0b99b4b6f462b056be6cbfef6a3c3c741eae28aae
|
7
|
+
data.tar.gz: d89b6086998d1195897d5b1dbb4dda9ae4fac81be7330e704fcf4e389bf496ab63f8ffde81cd1c4c2ba8271e50abd8891588c6551672b5766acd5623b190894a
|
@@ -8,7 +8,8 @@ module Jekyll
|
|
8
8
|
SUBDOMAINS = /\A(www|chat)\./.freeze
|
9
9
|
DOMAIN_MAP = {
|
10
10
|
't.me' => 'telegram',
|
11
|
-
'youtu.be' => 'youtube'
|
11
|
+
'youtu.be' => 'youtube',
|
12
|
+
'open.spotify.com' => 'spotify'
|
12
13
|
}.freeze
|
13
14
|
|
14
15
|
# Takes a URL and returns a Hash of attributes, useful when you
|
@@ -9,6 +9,10 @@ module Jekyll
|
|
9
9
|
#
|
10
10
|
# Optionally give it an schema to filter out keys.
|
11
11
|
#
|
12
|
+
# You can add an array of keys to remove from the schema on
|
13
|
+
# _config.yml, so if you're using a post to get an schema from,
|
14
|
+
# some values don't end up on the SASS/SCSS file.
|
15
|
+
#
|
12
16
|
# @param :yaml [Hash,Jekyll::Drops::DocumentDrop]
|
13
17
|
# @param :schema [Hash]
|
14
18
|
# @return [String]
|
@@ -21,7 +25,15 @@ module Jekyll
|
|
21
25
|
return yaml
|
22
26
|
end
|
23
27
|
|
24
|
-
|
28
|
+
site = @context.registers[:site]
|
29
|
+
keys = schema.keys
|
30
|
+
reject_keys = site.config.dig('liquid', 'yaml_to_scss', 'reject_keys')
|
31
|
+
|
32
|
+
if reject_keys.is_a?(Array) && !reject_keys.empty?
|
33
|
+
keys = keys - reject_keys
|
34
|
+
end
|
35
|
+
|
36
|
+
yaml.slice(*keys).map do |key, value|
|
25
37
|
next if value.nil?
|
26
38
|
|
27
39
|
escape = schema[key].is_a?(Hash) && %w[image file].include?(schema.dig(key, 'type'))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sutty-liquid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- f
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fast_blank
|