jekyll-multisite 0.3 → 0.4
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/lib/jekyll-multisite.rb +8 -2
- metadata +28 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 922bfe13757525712428b3f0635373bc2ddf4129
|
4
|
+
data.tar.gz: e121300a30a347fbd1f3a59764d23cdc165ce959
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 156645f6a0123928cd3c3efecb94fcb656de35b19f69ff63b9fe93361cb3adcb7047d0bddd38e2b553f97a1114c3d32a4e3ffb1e48957f926341ead1499f8f26
|
7
|
+
data.tar.gz: fb21be588864d599d80cd2b33bc8bf73c714a6222670994440a9eb6702d002d34272854644f7ccf2a7c4f75c96a18c9b8db1d11173f36096da1432fefa0f3e86
|
data/lib/jekyll-multisite.rb
CHANGED
@@ -34,7 +34,9 @@ module Jekyll
|
|
34
34
|
base_directory
|
35
35
|
elsif questionable_path.start_with?(base_directory)
|
36
36
|
questionable_path
|
37
|
-
elsif File.exists?(questionable_path) and questionable_path
|
37
|
+
elsif File.exists?(questionable_path) and !questionable_path.start_with?('/') and (ENV['OS'] == 'Windows_NT')
|
38
|
+
File.expand_path(questionable_path)
|
39
|
+
elsif File.exists?(questionable_path) and questionable_path != '/' and !(ENV['OS'] == 'Windows_NT')
|
38
40
|
File.expand_path(questionable_path)
|
39
41
|
else
|
40
42
|
File.join(base_directory, questionable_path)
|
@@ -46,7 +48,7 @@ module Jekyll
|
|
46
48
|
class Cleaner
|
47
49
|
def parent_dirs(file)
|
48
50
|
parent_dir = File.dirname(file)
|
49
|
-
if parent_dir == '/'
|
51
|
+
if parent_dir == '/' or File.dirname(parent_dir) == parent_dir or !parent_dir.start_with?(site.dest)
|
50
52
|
[]
|
51
53
|
elsif parent_dir == site.dest
|
52
54
|
[]
|
@@ -100,6 +102,10 @@ module Jekyll
|
|
100
102
|
end
|
101
103
|
end
|
102
104
|
|
105
|
+
Jekyll::Hooks.register :site, :after_init do |site|
|
106
|
+
site.includes_load_paths << File.join(site.source, File.join('../', site.config["includes_dir"].to_s))
|
107
|
+
end
|
108
|
+
|
103
109
|
Jekyll::Hooks.register :site, :post_write do |site|
|
104
110
|
base_shared = File.basename(site.config['shared_dir'])
|
105
111
|
shared_dir = File.join(site.dest, base_shared)
|
metadata
CHANGED
@@ -1,43 +1,58 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-multisite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.4'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
+
- Sven Strickroth
|
7
8
|
- Sumit Khanna
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2020-05-01 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: jekyll
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
16
17
|
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '3.0'
|
20
18
|
- - ">="
|
21
19
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
20
|
+
version: '3.2'
|
21
|
+
- - "<="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '4.0'
|
23
24
|
type: :runtime
|
24
25
|
prerelease: false
|
25
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
|
+
requirements:
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '3.2'
|
31
|
+
- - "<="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '4.0'
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: jekyll-paginate
|
36
|
+
requirement: !ruby/object:Gem::Requirement
|
26
37
|
requirements:
|
27
38
|
- - "~>"
|
28
39
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
30
|
-
|
40
|
+
version: 1.1.0
|
41
|
+
type: :runtime
|
42
|
+
prerelease: false
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
31
46
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
33
|
-
description: Plugin for
|
34
|
-
email:
|
47
|
+
version: 1.1.0
|
48
|
+
description: Plugin for multi-site Jekyll configurations
|
49
|
+
email: email@cs-ware.de
|
35
50
|
executables: []
|
36
51
|
extensions: []
|
37
52
|
extra_rdoc_files: []
|
38
53
|
files:
|
39
54
|
- lib/jekyll-multisite.rb
|
40
|
-
homepage:
|
55
|
+
homepage: https://github.com/csware/jekyll-multisite
|
41
56
|
licenses:
|
42
57
|
- GPL-3.0
|
43
58
|
metadata: {}
|
@@ -57,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
72
|
version: '0'
|
58
73
|
requirements: []
|
59
74
|
rubyforge_project:
|
60
|
-
rubygems_version: 2.
|
75
|
+
rubygems_version: 2.6.13
|
61
76
|
signing_key:
|
62
77
|
specification_version: 4
|
63
78
|
summary: jekyll-multisite
|