Initial support for JSON files as page template metadata finished.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2020-11-07 12:07:04 -05:00
parent 45f1ac84b1
commit e839ee18c8

View File

@ -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 }