jekyll-notion 2.4.1 → 2.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/lib/jekyll-notion/generator.rb +3 -0
- data/lib/jekyll-notion/generators/collection_generator.rb +2 -2
- data/lib/jekyll-notion/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2e9b1115040d4ee01312d20ad5f4941ecc9d3d06f5030e81d923c6c1ebbc42f
|
4
|
+
data.tar.gz: 404ad2116038bdb51c961123954076e5fd141977433c90ec451259e23ab1dadd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9541cf17c24c1abda04e6fcead84d6b40e561e41307b8200e53b97d07f86691c5f50fd12616c33b4b1a8d4bd52197ae4e0e94621b409426e370a1837fecef163
|
7
|
+
data.tar.gz: 8ce7987c435b601e21b390424791099f0b63e0c6c3261ba80415d28e4a89965eca0ed6a923a41f0b45d292c9f0a4ba7e924e610fc3376b176a4dd258c9614465
|
data/README.md
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
|
3
3
|
Import notion pages to jekyll.
|
4
4
|
|
5
|
+
You can learn more about how to use jekyll-notion with the following links:
|
6
|
+
|
7
|
+
* [Load notion pages in jekyll](https://enrq.me/dev/2022/03/20/load-notion-pages-in-jekyll/)
|
8
|
+
* [Managing Jekyll posts in Notion](https://enrq.me/dev/2022/03/24/managing-jekyll-posts-in-notion/)
|
9
|
+
* [Embedding videos with jekyll-notion](https://enrq.me/dev/2023/03/31/embedding-videos-with-jekyll-notion/)
|
10
|
+
|
5
11
|
## Installation
|
6
12
|
|
7
13
|
Use gem to install.
|
@@ -75,6 +75,9 @@ module JekyllNotion
|
|
75
75
|
end
|
76
76
|
|
77
77
|
def fetch_on_watch?
|
78
|
+
Jekyll.logger.warn("Jekyll Notion:",
|
79
|
+
"[Warning] The fetch_on_watch feature is deprecated in preference to the cache mechanism. It will be removed in the next major release.")
|
80
|
+
|
78
81
|
config["fetch_on_watch"] == true
|
79
82
|
end
|
80
83
|
|
@@ -64,11 +64,11 @@ module JekyllNotion
|
|
64
64
|
def date_for(page)
|
65
65
|
# The "date" property overwrites the Jekyll::Document#data["date"] key
|
66
66
|
# which is the date used by Jekyll to set the post date.
|
67
|
-
|
67
|
+
Time.parse(page.props["date"]).to_date
|
68
68
|
rescue TypeError, NoMethodError
|
69
69
|
# Because the "date" property is not required,
|
70
70
|
# it fallbacks to the created_time which is always present.
|
71
|
-
page.created_time.to_date
|
71
|
+
Time.parse(page.created_time).to_date
|
72
72
|
end
|
73
73
|
end
|
74
74
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-notion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Enrique Arias
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -36,42 +36,42 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
39
|
+
version: 1.2.0
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
46
|
+
version: 1.2.0
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: notion_to_md
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
53
|
+
version: 2.4.0
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
60
|
+
version: 2.4.0
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: vcr
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
67
|
+
version: 6.2.0
|
68
68
|
type: :runtime
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
74
|
+
version: 6.2.0
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: bundler
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|