jekyll 2.5.2 → 2.5.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of jekyll might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/jekyll/converters/markdown.rb +1 -1
- data/lib/jekyll/filters.rb +13 -4
- data/lib/jekyll/version.rb +1 -1
- data/lib/site_template/_includes/head.html +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c787f506ca8765ba861f91e8eb2bd9f0f323f7d
|
4
|
+
data.tar.gz: 69946ba3e330326aa40f8eb4dfff680b48fb4a99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d3e0f40edb819f100b09334100b81dd9c644d69bcc2fc1e5d66579ed7a0355751f2301fcb3c2a4656621adb5918d26a7a09a43b38f47660f363cf4f57f6eee3
|
7
|
+
data.tar.gz: 59b59b0f45acbe8872e596e3d7b9485546f735cb076cb88574409c9cd4cae657bfbf945352b1b8033d41b6abb5078f785a4d53c3211189aa16c12f9b8f018a39
|
data/lib/jekyll/filters.rb
CHANGED
@@ -328,14 +328,23 @@ module Jekyll
|
|
328
328
|
|
329
329
|
def as_liquid(item)
|
330
330
|
case item
|
331
|
-
when String, Numeric, nil
|
332
|
-
item.to_liquid
|
333
331
|
when Hash
|
334
|
-
|
332
|
+
pairs = item.map { |k, v| as_liquid([k, v]) }
|
333
|
+
Hash[pairs]
|
335
334
|
when Array
|
336
335
|
item.map{ |i| as_liquid(i) }
|
337
336
|
else
|
338
|
-
item.respond_to?(:to_liquid)
|
337
|
+
if item.respond_to?(:to_liquid)
|
338
|
+
liquidated = item.to_liquid
|
339
|
+
# prevent infinite recursion for simple types (which return `self`)
|
340
|
+
if liquidated == item
|
341
|
+
item
|
342
|
+
else
|
343
|
+
as_liquid(liquidated)
|
344
|
+
end
|
345
|
+
else
|
346
|
+
item
|
347
|
+
end
|
339
348
|
end
|
340
349
|
end
|
341
350
|
end
|
data/lib/jekyll/version.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
<head>
|
2
2
|
<meta charset="utf-8">
|
3
3
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
4
|
-
<meta name="viewport" content="width=device-width initial-scale=1">
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
5
5
|
|
6
6
|
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
|
7
7
|
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
|
8
8
|
|
9
9
|
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
|
10
10
|
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
|
11
|
-
<link rel="alternate" type="application/
|
11
|
+
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
|
12
12
|
</head>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Preston-Werner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: liquid
|