You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
108 lines
1.5 KiB
108 lines
1.5 KiB
3 years ago
|
---
|
||
|
|
||
|
ServingSize:
|
||
|
cssclass: recipeTable
|
||
|
Alias: []
|
||
|
Tag: []
|
||
|
Date: 2021-09-21
|
||
|
DocType: "Recipe"
|
||
|
Hierarchy: "NonRoot"
|
||
|
location: [51.514678599999996, -0.18378583926867909]
|
||
|
CollapseMetaTable: Yes
|
||
|
Meta:
|
||
|
IsFavourite: False
|
||
|
Rating: 4
|
||
|
Recipe:
|
||
|
Courses:
|
||
|
Categories:
|
||
|
Collections:
|
||
|
Source:
|
||
|
PreparationTime:
|
||
|
CookingTime:
|
||
|
Ingredients:
|
||
|
-
|
||
|
|
||
|
---
|
||
|
|
||
|
Parent::
|
||
|
|
||
|
---
|
||
|
|
||
|
 
|
||
|
|
||
|
```button
|
||
|
name Edit Recipe parameters
|
||
|
type command
|
||
|
action MetaEdit: Run MetaEdit
|
||
|
id EditMetaData
|
||
|
```
|
||
|
^button-<% tp.file.title %>Edit
|
||
|
|
||
|
|
||
|
```button
|
||
|
name Save
|
||
|
type command
|
||
|
action Save current file
|
||
|
id Save
|
||
|
```
|
||
|
^button-<% tp.file.title %>NSave
|
||
|
|
||
|
|
||
|
|
||
|
 
|
||
|
|
||
|
# <% tp.file.title %>
|
||
|
|
||
|
 
|
||
|
|
||
|
```toc
|
||
|
style: number
|
||
|
```
|
||
|
|
||
|
 
|
||
|
|
||
|
---
|
||
|
|
||
|
 
|
||
|
|
||
|
### Practical Informations
|
||
|
|
||
|
| |
|
||
|
|-|-
|
||
|
**Courses**: | `$=dv.current().Recipe.Courses`
|
||
|
**Categories**: | `$=dv.current().Recipe.Categories`
|
||
|
**Collections**: | `$=dv.current().Recipe.Collections`
|
||
|
**Serving size**: | `$=dv.current().ServingSize`
|
||
|
**Cooking time**: | `$=dv.current().Recipe.CookingTime` min
|
||
|
|
||
|
 
|
||
|
|
||
|
---
|
||
|
|
||
|
 
|
||
|
|
||
|
### Ingredients
|
||
|
|
||
|
 
|
||
|
|
||
|
```dataviewjs
|
||
|
var ing = [];
|
||
|
for (var i = 0; i < dv.current().Ingredients.length; i++) {
|
||
|
var name = dv.current().Ingredients[i].replace(dv.current().Ingredients[i].split(" ")[0] + " " + dv.current().Ingredients[i].split(" ")[1], "");
|
||
|
var unit = dv.current().Ingredients[i].split(" ")[1];
|
||
|
var amount = dv.current().Ingredients[i].split(" ")[0];
|
||
|
ing[i] = "🥣 " + (amount / 2 * dv.current().ServingSize) + " " + unit + " <b>" + name + "</b>"
|
||
|
}
|
||
|
dv.list(ing)
|
||
|
```
|
||
|
|
||
|
 
|
||
|
|
||
|
---
|
||
|
|
||
|
 
|
||
|
|
||
|
### Instructions
|
||
|
|
||
|
 
|