Update uuid generation
This commit is contained in:
parent
1a2c7e0a49
commit
bf6905fdcb
5 changed files with 3 additions and 18 deletions
|
@ -4,8 +4,6 @@ _template: zutaten.yaml
|
||||||
---
|
---
|
||||||
recipe_name: klassische Waffeln
|
recipe_name: klassische Waffeln
|
||||||
---
|
---
|
||||||
recipe_uuid: 65ef100f-1e6d-44d5-94ba-b862da3c5988
|
|
||||||
---
|
|
||||||
x_ignore_1: yes
|
x_ignore_1: yes
|
||||||
---
|
---
|
||||||
servings:
|
servings:
|
||||||
|
|
|
@ -28,11 +28,6 @@ width = 1/2
|
||||||
label = recipe name
|
label = recipe name
|
||||||
type = string
|
type = string
|
||||||
|
|
||||||
[fields.recipe_uuid]
|
|
||||||
label = recipe uuid
|
|
||||||
description = uuidgen
|
|
||||||
type = string
|
|
||||||
|
|
||||||
[fields.servings]
|
[fields.servings]
|
||||||
label = servings
|
label = servings
|
||||||
description = Hier wird definiert, für welche Portionsgröße die Zutaten angegeben werden
|
description = Hier wird definiert, für welche Portionsgröße die Zutaten angegeben werden
|
||||||
|
|
|
@ -18,7 +18,7 @@ X-usda_lookup: "https://fdc.nal.usda.gov/fdc-app.html" -#}
|
||||||
{{- '\nrecipe_name: ' -}} "{{- this.title -}}"
|
{{- '\nrecipe_name: ' -}} "{{- this.title -}}"
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
{{- '\nrecipe_uuid: ' -}} "{{- this._gid -}}"
|
{{- '\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] -}}"
|
||||||
|
|
||||||
{%- include "zutaten/yields.yaml" -%}
|
{%- include "zutaten/yields.yaml" -%}
|
||||||
|
|
||||||
|
|
|
@ -13,11 +13,7 @@
|
||||||
{{- '\n ' -}} <div class="content__box">
|
{{- '\n ' -}} <div class="content__box">
|
||||||
{{- '\n ' -}} <div class="content__inner_box">
|
{{- '\n ' -}} <div class="content__inner_box">
|
||||||
{{- '\n ' -}}
|
{{- '\n ' -}}
|
||||||
{%- if child.recipe_uuid is defined and child.recipe_uuid != "" -%}
|
<h1 id="{{- this.parent._gid[:8] -}}-{{- this.parent._gid[-6:-2] -}}-{{- this._gid[-8:-4] }}-{{- this._gid[-4:] -}}-{{- this._gid[:12] -}}">
|
||||||
<h1 id="{{ child.recipe_uuid }}">
|
|
||||||
{%- else -%}
|
|
||||||
<h1>
|
|
||||||
{%- endif -%}
|
|
||||||
{%- if child.recipe_name and child.recipe_name != "" -%}
|
{%- if child.recipe_name and child.recipe_name != "" -%}
|
||||||
{{ child.recipe_name }}</h1>
|
{{ child.recipe_name }}</h1>
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
|
|
|
@ -13,11 +13,7 @@
|
||||||
{{- '\n ' -}} <div class="content__box">
|
{{- '\n ' -}} <div class="content__box">
|
||||||
{{- '\n ' -}} <div class="content__inner_box">
|
{{- '\n ' -}} <div class="content__inner_box">
|
||||||
{{- '\n ' -}}
|
{{- '\n ' -}}
|
||||||
{%- if child.recipe_uuid is defined and child.recipe_uuid != "" -%}
|
<h1 id="{{- this.parent._gid[:8] -}}-{{- this.parent._gid[-6:-2] -}}-{{- this._gid[-8:-4] }}-{{- this._gid[-4:] -}}-{{- this._gid[:12] -}}">
|
||||||
<h1 id="{{ child.recipe_uuid }}">
|
|
||||||
{%- else -%}
|
|
||||||
<h1>
|
|
||||||
{%- endif -%}
|
|
||||||
{%- if child.recipe_name and child.recipe_name != "" -%}
|
{%- if child.recipe_name and child.recipe_name != "" -%}
|
||||||
{{ child.recipe_name }}</h1>
|
{{ child.recipe_name }}</h1>
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
|
|
Loading…
Reference in a new issue