Someone also shared a recipe template on Discord.
In the end I decided to make something from scratch, so I thought I might just as well share it. The template is triggered by schema:@Recipe and extracts some basic data, such as author, source, prep time and phrases that can be used as keywords. It includes some fallbacks to preset variables in case some properties are filled improperly or not at all, including {{content}} at the very end of the clipping – this way the recipe can be saved very quickly with very low risk of essential content being omitted during saving. The template is in Polish, but it’s simple enough to be self-explanatory. I tested it on a number of websites to make sure everything is working as desired. Suggestions always welcome!
```json
{
"schemaVersion": "0.1.0",
"name": "Przepis",
"behavior": "create",
"noteContentFormat": "{{description}}\n\n\n\n# Składniki\n\n{{schema:recipeIngredient|list}}\n\n# Instrukcje\n\n{{schema:recipeInstructions|list:numbered}}\n\n# Treść oryginalna\n\n{{content}}",
"properties": [
{
"name": "źródło",
"value": "[{{site}}]({{domain}})",
"type": "text"
},
{
"name": "autor",
"value": "{{schema:author.name}} ({{author}})",
"type": "text"
},
{
"name": "link",
"value": "{{url}}",
"type": "text"
},
{
"name": "zapisano",
"value": "{{date|date:\\\"D.M.YYYY\\\"}}",
"type": "text"
},
{
"name": "słowa kluczowe",
"value": "{{schema:recipeCategory}}, {{schema:recipeCuisine}}, {{schema:keywords}}",
"type": "text"
},
{
"name": "czas pracy",
"value": "{{schema:prepTime|duration}}",
"type": "text"
},
{
"name": "czas przygotowania",
"value": "{{schema:totalTime|duration}}",
"type": "text"
}
],
"triggers": [
"schema:@Recipe"
],
"noteNameFormat": "{{title}}",
"path": "Nowe"
}
```
przepis-clipper.json.zip (1.2 KB)