webseite/templates/zutaten.yaml

43 lines
1.5 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-08-10 21:16:09 +02:00
{{- '\nrecipe_uuid: ' -}} "{{- this._gid -}}"
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) -%}
{{- '\nX-hygiene_flyer: ' -}} "https://wiki.c3gelb.de/doku.php?id=public:flyer"
{{- '\nX-hygiene_video: ' -}} "https://youtu.be//w-4_5J0xk7A"
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" -#}