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:
|
||||
- name
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
pattern: "^[a-z0-9-]+$"
|
||||
name:
|
||||
type: string
|
||||
caption:
|
||||
|
|
Before Width: | Height: | Size: 132 KiB After Width: | Height: | Size: 132 KiB |
|
@ -55,7 +55,10 @@ export class Engine {
|
|||
arr.push(obj);
|
||||
}
|
||||
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") {
|
||||
// load image
|
||||
const img = images.find((i) => i.id === fn);
|
||||
|
|
Loading…
Reference in a new issue