jekyll-notion 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: ea3659b155864441e1d6eb08111597ce11ffec1891011ed9f7c7724dcbc7d186
4
- data.tar.gz: 2e6ecac50f3d6aaae6e3af587d362f5470054452552e2dc1691d25e1abead605
3
+ metadata.gz: ad5bd5565352088d6d5d4048155a6abfb38bb0136437159ed7fdfd7d0aaf27a1
4
+ data.tar.gz: 57d4da4ceec1869150d33c9bdc10825a636de18409798725bf1ae891d1459b50
5
5
  SHA512:
6
- metadata.gz: 5698ea2735469d130cbec72aee61facd213589f1e349dd7d29588214896f931d2d8c740a36f5d7d2f36d83ca9a9b5fd976806c3c135eca7e201eac13f4b98d97
7
- data.tar.gz: 7cad325c6ce2cf4e3216f086693b40ead4cc7b176826c1f26efb33b98e342d92ee285d9ed22f9d84b6e4eced090a227ef88bbf5139dc662c2067c9bec79f08f0
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
- `created_time`, `last_edited_time`, `created_by`, `last_edited_by`, `title`, `rich_text` as advanced types like `formula`, `relation` and `rollup` are not supported.
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JekyllNotion
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  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: 0.1.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-25 00:00:00.000000000 Z
11
+ date: 2022-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport