mirror of
https://github.com/web3privacy/data
synced 2024-10-15 18:16:28 +02:00
add ids to people
This commit is contained in:
parent
047f81ebe4
commit
5c7f56aeb9
3 changed files with 7 additions and 1 deletions
|
@ -81,6 +81,9 @@ $defs:
|
||||||
required:
|
required:
|
||||||
- name
|
- name
|
||||||
properties:
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
pattern: "^[a-z0-9-]+$"
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
caption:
|
caption:
|
||||||
|
|
Before Width: | Height: | Size: 132 KiB After Width: | Height: | Size: 132 KiB |
|
@ -55,7 +55,10 @@ export class Engine {
|
||||||
arr.push(obj);
|
arr.push(obj);
|
||||||
}
|
}
|
||||||
if (ext === "yaml" && fn !== "index") {
|
if (ext === "yaml" && fn !== "index") {
|
||||||
const item = await readYamlFile(join(dir, dirEntry.name));
|
const item = Object.assign(
|
||||||
|
{ id: fn },
|
||||||
|
await readYamlFile(join(dir, dirEntry.name)),
|
||||||
|
);
|
||||||
if (opts.loader === "person") {
|
if (opts.loader === "person") {
|
||||||
// load image
|
// load image
|
||||||
const img = images.find((i) => i.id === fn);
|
const img = images.find((i) => i.id === fn);
|
||||||
|
|
Loading…
Reference in a new issue