feat: refactor some shit
This commit is contained in:
50
registry/templates/recipe.marka
Normal file
50
registry/templates/recipe.marka
Normal file
@@ -0,0 +1,50 @@
|
||||
---
|
||||
{
|
||||
path: .
|
||||
codec: yaml
|
||||
fields:
|
||||
- path: name
|
||||
codec: text
|
||||
required: true
|
||||
- path: image
|
||||
codec: text
|
||||
required: true
|
||||
- path: author.@type
|
||||
codec: const
|
||||
value: Person
|
||||
- path: author.name
|
||||
codec: text
|
||||
- path: datePublished
|
||||
codec: text
|
||||
- path: description
|
||||
codec: text
|
||||
- path: prepTime
|
||||
codec: text
|
||||
- path: cookTime
|
||||
codec: text
|
||||
- path: recipeYield
|
||||
codec: text
|
||||
}
|
||||
---
|
||||
|
||||
# { name | text,required }
|
||||
|
||||
{ description | text }
|
||||
|
||||
## Ingredients
|
||||
{
|
||||
path: recipeIngredient
|
||||
codec: list
|
||||
required: true
|
||||
item:
|
||||
template: "- { . }"
|
||||
}
|
||||
|
||||
## Steps
|
||||
{
|
||||
path: recipeInstructions
|
||||
codec: list
|
||||
required: true
|
||||
item:
|
||||
template: "{ @index }. { . }"
|
||||
}
|
Reference in New Issue
Block a user