jekyll-file-protocol 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95a178002e4e1ab1f79727fbc2743d182c385120
|
4
|
+
data.tar.gz: d8fd545466618bd39235db3950aef9229de90b06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45696d7dd4e98a7b018c042046143b3feb4596e54cc3c59a5739e741c191fb6d18f846e3f5487d7d1cdf53652f0ad8e44376ecde308fa60ca5822d5ecd72031c
|
7
|
+
data.tar.gz: 1ba54e36fc4c9d4812ab4780ffc1156eff02a40d84251f9e22c1704a9ab56b0011c81ffb66ba82d2fe2baf4351b4e5ec91de2d1c506ebd23e3400de3c2603279
|
data/README.md
CHANGED
@@ -6,8 +6,9 @@ module JekyllFileProtocol
|
|
6
6
|
|
7
7
|
module Filters
|
8
8
|
|
9
|
-
def relative_path(
|
10
|
-
|
9
|
+
def relative_path(input)
|
10
|
+
require 'pry'; binding.pry
|
11
|
+
::JekyllFileProtocol::RelativePathRenderer.new(@context, input).render
|
11
12
|
end
|
12
13
|
|
13
14
|
end
|
@@ -7,7 +7,7 @@ module JekyllFileProtocol
|
|
7
7
|
@page_url = @context.registers[:page]['url']
|
8
8
|
@path = path.strip
|
9
9
|
|
10
|
-
generate_relative_path!
|
10
|
+
generate_relative_path!
|
11
11
|
end
|
12
12
|
|
13
13
|
def render
|
@@ -25,7 +25,7 @@ module JekyllFileProtocol
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def generate_relative_path!
|
28
|
-
@relative_path = @path
|
28
|
+
@relative_path = @path and return unless is_absolute_path?
|
29
29
|
relative = @relative_path
|
30
30
|
|
31
31
|
if relative.start_with?('//')
|