jekyll-notion 0.1.1 → 0.1.2
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/README.md +3 -1
- data/lib/jekyll-notion/notion_page.rb +6 -3
- data/lib/jekyll-notion/version.rb +1 -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: ad5bd5565352088d6d5d4048155a6abfb38bb0136437159ed7fdfd7d0aaf27a1
|
4
|
+
data.tar.gz: 57d4da4ceec1869150d33c9bdc10825a636de18409798725bf1ae891d1459b50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5749b831d1884f5d88b344d92ff924dc474813098b05dedfc0862a38dceada9ac8e31c9fd5a80ff418a3974d8ff61fd8879a2c7522dfb1bff2c02b133e82d83f
|
7
|
+
data.tar.gz: c10de414ceb372b5e2c2a29ba06878f69aaa6f01cc7d37b0a1a8f50078a55b92d4d63a2709e963f2da625ac73878008ae33a0c74c375ecf06f67b5b08c02a0cc
|
data/README.md
CHANGED
@@ -59,6 +59,8 @@ And that's all. Each page in the notion database will be included in the selecte
|
|
59
59
|
|
60
60
|
Below, page notion default properties are set in each page frontmatter.
|
61
61
|
|
62
|
+
Default properties include `title`, created_time`, `last_edited_time`, `icon` and `cover.
|
63
|
+
|
62
64
|
```
|
63
65
|
---
|
64
66
|
id: b2998...
|
@@ -103,7 +105,7 @@ The supported properties are:
|
|
103
105
|
* `email`
|
104
106
|
* `phone_number`
|
105
107
|
|
106
|
-
`
|
108
|
+
`created_by`, `last_edited_by`, `rich_text` as advanced types like `formula`, `relation` and `rollup` are not supported.
|
107
109
|
|
108
110
|
Check notion documentation about [property values](https://developers.notion.com/reference/property-value-object#all-property-values).
|
109
111
|
|
@@ -73,7 +73,8 @@ module JekyllNotion
|
|
73
73
|
class CustomProperty
|
74
74
|
class << self
|
75
75
|
def multi_select(prop)
|
76
|
-
prop.multi_select.map(&:name).join(", ")
|
76
|
+
multi_select = prop.multi_select.map(&:name).join(", ")
|
77
|
+
"[#{multi_select}]"
|
77
78
|
end
|
78
79
|
|
79
80
|
def select(prop)
|
@@ -81,11 +82,13 @@ module JekyllNotion
|
|
81
82
|
end
|
82
83
|
|
83
84
|
def people(prop)
|
84
|
-
prop.people.map(&:name).join(", ")
|
85
|
+
people = prop.people.map(&:name).join(", ")
|
86
|
+
"[#{people}]"
|
85
87
|
end
|
86
88
|
|
87
89
|
def files(prop)
|
88
|
-
prop.files.map { |f| f.file.url }.join(", ")
|
90
|
+
files = prop.files.map { |f| f.file.url }.join(", ")
|
91
|
+
"[#{files}]"
|
89
92
|
end
|
90
93
|
|
91
94
|
def phone_number(prop)
|
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: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Enrique Arias
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|