webseite/templates/zutaten.yaml

45 lines
1.9 KiB
YAML
Raw Normal View History

2021-06-24 23:44:12 +02:00
---
2021-08-10 21:16:09 +02:00
{#-
X-definition_ORF: "https://open-recipe-format.readthedocs.io/en/latest/topics/reference/orf.html"
X-json_schema: "https://raw.githubusercontent.com/techhat/openrecipeformat/master/schema.json"
X-validator: "https://json-schema.org/"
X-validator_steps:
2021-06-24 23:44:12 +02:00
- "pip3 install jsonschema"
- "install yq"
- "wget {{ json_schema }}"
- "curl rezep.yaml | yq -j > rezept.json"
- "jsonschema -i rezept.json schema.json"
2021-08-10 21:16:09 +02:00
X-usda_lookup: "https://fdc.nal.usda.gov/fdc-app.html" -#}
2021-06-24 23:44:12 +02:00
{%- if this.recipe_name and this.recipe_name != "" -%}
2021-08-10 21:16:09 +02:00
{{- '\nrecipe_name: ' -}} "{{- this.recipe_name | default(this.title) -}}"
2021-06-24 23:44:12 +02:00
{%- else -%}
2021-08-10 21:16:09 +02:00
{{- '\nrecipe_name: ' -}} "{{- this.title -}}"
2021-06-24 23:44:12 +02:00
{%- endif -%}
2021-09-05 01:47:13 +02:00
{{- '\nrecipe_uuid: ' -}} "{{- this.parent.parent._gid[:8] -}}-{{- this.parent.parent._gid[-6:-2] -}}-{{- this.parent._gid[-8:-4] }}-{{- this.parent._gid[-4:] -}}-{{- this.parent._gid[:12] -}}"
2021-06-24 23:44:12 +02:00
2021-07-31 18:48:28 +02:00
{%- include "zutaten/yields.yaml" -%}
2021-06-24 23:44:12 +02:00
2021-07-31 18:48:28 +02:00
{%- include "zutaten/ingredients.yaml" -%}
{%- include "zutaten/steps.yaml" -%}
{%- include "zutaten/oven.yaml" -%}
2021-06-24 23:44:12 +02:00
{%- if this.source_authors is defined and this.source_authors != "" -%}
2021-08-10 21:16:09 +02:00
{{- '\n\nsource_authors: ' -}} "{{ this.source_authors }}"
2021-06-24 23:44:12 +02:00
{%- endif -%}
{%- if this.x_license is defined and this.x_license != "" -%}
2021-08-10 21:16:09 +02:00
{{- '\nX-License: ' -}} "{{ this.x_license }}"
{%- endif -%}
{%- if this.render_hygiene | default(True) -%}
2021-08-11 20:48:17 +02:00
{{- '\nX-hygiene: ' -}} "https://c3woc.de/hygiene/"
2021-08-10 21:16:09 +02:00
{{- '\nX-hygiene_flyer: ' -}} "https://wiki.c3gelb.de/doku.php?id=public:flyer"
2021-08-11 01:21:25 +02:00
{{- '\nX-hygiene_video: ' -}} "https://youtu.be/w-4_5J0xk7A"
{{- '\nX-hygiene_eggs: ' -}} "https://www.bvl.bund.de/DE/Arbeitsbereiche/01_Lebensmittel/03_Verbraucher/03_UmgangLM/02_LMzubereiten/03_Eier/lm_zubereitung_eier_node.html"
2021-06-24 23:44:12 +02:00
{%- endif -%}
{{ '\nsource_url:' }} "{{ '../'|url(external=true) }}"
2021-08-10 21:16:09 +02:00
{#- X-ORF_source: "https://open-recipe-format.readthedocs.io/en/latest/topics/tutorials/walkthrough.html" -#}