{{ define "main" }} {{ $config := "" }} {{ if eq .Params.engine "linear" }} {{ $config = dict "fromFactor" .Params.from_factor "toFactor" .Params.to_factor | jsonify }} {{ else if eq .Params.engine "intermediate" }} {{ $config = dict "fromUnit" .Params.from_unit "toUnit" .Params.to_unit | jsonify }} {{ else if eq .Params.engine "runtime" }} {{ $config = dict "fromCurrency" .Params.from "toCurrency" .Params.to | jsonify }} {{ end }} {{ $catData := index hugo.Data .Params.category }} {{ $availableUnits := partial "available-units.html" (dict "category" .Params.category "units" $catData.units) }}

{{ .Params.from_name }} in {{ .Params.to_name }} umrechnen

{{ partial "conversion-formula.html" . }}
{{ partial "conversion-seo-texts.html" . }}
{{ end }} {{ define "headscripts" }} {{ end }}