diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-01-26 15:14:38 -0400 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-01-26 15:14:38 -0400 |
| commit | a074fd54107c51c4fcbfedbbf6df6eca539d19d3 (patch) | |
| tree | 4fec08106aa3054c1954c5fa4ade0fb880c5eeb3 /src/data/things/NewsEntry.js | |
| parent | 796e4bc1452b918bbf50a2e802b308f6ac20f2c2 (diff) | |
data, yaml: split yaml loading specs into src/data/files
Diffstat (limited to 'src/data/things/NewsEntry.js')
| -rw-r--r-- | src/data/things/NewsEntry.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/data/things/NewsEntry.js b/src/data/things/NewsEntry.js index 65fd125b..7cbbfc4b 100644 --- a/src/data/things/NewsEntry.js +++ b/src/data/things/NewsEntry.js @@ -1,7 +1,4 @@ -const NEWS_DATA_FILE = 'news.yaml'; - import {V} from '#composite'; -import {sortChronologically} from '#sort'; import Thing from '#thing'; import {parseDate} from '#yaml'; @@ -58,19 +55,4 @@ export class NewsEntry extends Thing { 'Content': {property: 'content'}, }, }; - - static [Thing.getYamlLoadingSpec] = ({ - documentModes: {allInOne}, - thingConstructors: {NewsEntry}, - }) => ({ - title: `Process news data file`, - file: NEWS_DATA_FILE, - - documentMode: allInOne, - documentThing: NewsEntry, - - sort({newsData}) { - sortChronologically(newsData, {latestFirst: true}); - }, - }); } |