Adding hygienic label in ORF

This commit is contained in:
L3D 2021-08-10 21:16:09 +02:00
parent 8787c08920
commit a73a072b09
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 23 additions and 13 deletions

View file

@ -93,7 +93,7 @@ box_content:
Der klassische Waffelteig lässt sich mit Zutaten eurer Wahl verfeiern und verwandelt das Waffeln essen in ein neues Abendteuer. Der klassische Waffelteig lässt sich mit Zutaten eurer Wahl verfeiern und verwandelt das Waffeln essen in ein neues Abendteuer.
Es gibt Zimt, Kardamom, Chilli, frische Kräuter und vieles mehr. Probiert es doch mal aus. Es gibt zum Beispiel Zimt, Kardamom, Chilli, frische Kräuter und vieles mehr. Probiert es doch mal aus.
----- -----
box_link: verfeinerter Teig box_link: verfeinerter Teig
----- -----

View file

@ -75,7 +75,13 @@ width = 1/3
[fields.source_authors] [fields.source_authors]
label = Author label = Author
type = string type = string
width = 1/2
[fields.x_license] [fields.x_license]
label = License label = License
type = string type = string
width = 1/2
[fields.render_hygiene]
label = Render Hygiene Hinweise
type = boolean

View file

@ -1,24 +1,24 @@
--- ---
{# {#-
definition_ORF: "https://open-recipe-format.readthedocs.io/en/latest/topics/reference/orf.html" X-definition_ORF: "https://open-recipe-format.readthedocs.io/en/latest/topics/reference/orf.html"
json_schema: "https://raw.githubusercontent.com/techhat/openrecipeformat/master/schema.json" X-json_schema: "https://raw.githubusercontent.com/techhat/openrecipeformat/master/schema.json"
validator: "https://json-schema.org/" X-validator: "https://json-schema.org/"
validator_steps: X-validator_steps:
- "pip3 install jsonschema" - "pip3 install jsonschema"
- "install yq" - "install yq"
- "wget {{ json_schema }}" - "wget {{ json_schema }}"
- "curl rezep.yaml | yq -j > rezept.json" - "curl rezep.yaml | yq -j > rezept.json"
- "jsonschema -i rezept.json schema.json" - "jsonschema -i rezept.json schema.json"
usda_lookup: "https://fdc.nal.usda.gov/fdc-app.html" -#} X-usda_lookup: "https://fdc.nal.usda.gov/fdc-app.html" -#}
{%- if this.recipe_name and this.recipe_name != "" -%} {%- if this.recipe_name and this.recipe_name != "" -%}
recipe_name: "{{ this.recipe_name | default(this.title) }}" {{- '\nrecipe_name: ' -}} "{{- this.recipe_name | default(this.title) -}}"
{%- else -%} {%- else -%}
recipe_name: "{{ this.title }}" {{- '\nrecipe_name: ' -}} "{{- this.title -}}"
{%- endif -%} {%- endif -%}
{{- '\nrecipe_uuid: ' -}} "{{ this._gid }}" {{- '\nrecipe_uuid: ' -}} "{{- this._gid -}}"
{%- include "zutaten/yields.yaml" -%} {%- include "zutaten/yields.yaml" -%}
@ -29,10 +29,14 @@ usda_lookup: "https://fdc.nal.usda.gov/fdc-app.html" -#}
{%- include "zutaten/oven.yaml" -%} {%- include "zutaten/oven.yaml" -%}
{%- if this.source_authors is defined and this.source_authors != "" -%} {%- if this.source_authors is defined and this.source_authors != "" -%}
{{ '\n\nsource_authors:'}} "{{ this.source_authors }}" {{- '\n\nsource_authors: ' -}} "{{ this.source_authors }}"
{%- endif -%} {%- endif -%}
{%- if this.x_license is defined and this.x_license != "" -%} {%- if this.x_license is defined and this.x_license != "" -%}
{{ '\nX-License:' }} "{{ this.x_license }}" {{- '\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"
{%- endif -%} {%- endif -%}
{{ '\nsource_url:' }} "{{ '../'|url(external=true) }}" {{ '\nsource_url:' }} "{{ '../'|url(external=true) }}"
{#- source: "https://open-recipe-format.readthedocs.io/en/latest/topics/tutorials/walkthrough.html" -#} {#- X-ORF_source: "https://open-recipe-format.readthedocs.io/en/latest/topics/tutorials/walkthrough.html" -#}