Initial support for JSON files as page template metadata finished.
This commit is contained in:
parent
45f1ac84b1
commit
e839ee18c8
@ -57,7 +57,7 @@ BreaFile >> folder: anObject [
|
|||||||
BreaFile >> metadata [
|
BreaFile >> metadata [
|
||||||
self name ifNil: [ ^ nil ].
|
self name ifNil: [ ^ nil ].
|
||||||
(self name endsWith: '.md') ifTrue: [ ^ self contents metadata ].
|
(self name endsWith: '.md') ifTrue: [ ^ self contents metadata ].
|
||||||
(self name endsWith: '.md') ifTrue: [ ^ self contents at: 'metadata' ifAbsent: [ ^ nil ] ].
|
(self name endsWith: '.json') ifTrue: [ ^ self contents ].
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
|
Loading…
Reference in New Issue
Block a user