647 B
647 B
tags, obsidianUIMode, link_recipes
| tags | obsidianUIMode | link_recipes | ||||||
|---|---|---|---|---|---|---|---|---|
|
preview |
|
name New Recipe
type command
action Templater: Create templates/TPL_recipe.md
dv.table(
["Recipe", "Prep Time", "Cook Time", "Cuisine", "Meals", "Rating"],
dv.pages("#recipe").sort(p => p.file.ctime, 'desc')
.map(p => [
p.file.link,
p.prep_time,
p.cook_time,
p.cuisine,
p.meals ? p.meals.join(", ") : "",
"★".repeat(p.rating) + "☆".repeat(5 - p.rating)
])
);