{{ partial "head-meta.html" . }} {{ block "title" . }}{{ .Site.Title }}{{ end }} {{ "" | safeHTML }} {{/* Deprecated {{ if .RSSLink }} {{ "" | safeHTML }} {{ end }} */}} {{ with .OutputFormats.Get "rss" -}} {{ "" | safeHTML }} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} {{ if .Site.Params.cookie_consent_info_url }} {{ partial "cookie-consent.html" . }} {{ end }} {{ template "_internal/google_analytics_async.html" . }} {{ partial "head-custom.html" . }}

{{ .Site.Title | safeHTML }}

{{ if .Site.Params.description }}

{{ .Site.Params.description | markdownify }}

{{ end }} differ
{{ block "main" . }} {{ with .Page.Params }} {{ if not .question }}

No whatever-o-meter questions defined, you need to define some custom fields.

{{ else }}
{{ range $i := seq 30 30 160 }} {{ range $j := seq 6 6 30 }} {{ end }} {{ range $j := seq 6 6 30 }} {{ end }} {{ end }} 0 0 0 0 0

{{ .intro }}


{{ $questions := .question }} {{ $left_texts := default (slice "No") .left }} {{ $centre_texts := default (slice "-") (default .centre .center) }} {{ $right_texts := default (slice "Yes") .right }} {{ $last_index := sub (len $questions) 1 }} {{ range $index, $question := $questions }} {{ $left := default "No" (index $left_texts $index) }} {{ $centre := default "-" (index $centre_texts $index) }} {{ $right := default "Yes" (index $right_texts $index) }} {{ else }}
{{ end }} {{ end }}

{{ with .result }} {{ $.Scratch.Set "results" . }} {{ end }} {{ with (default .colors .colours) }} {{ $.Scratch.Set "colours" (split . ",") }} {{ end }} {{ with .weights }} {{ $.Scratch.Set "weights" (split . ",") }} {{ end }} {{ with .duration }} {{ $.Scratch.Set "duration" . }} {{ end }} {{ with .easing }} {{ $.Scratch.Set "easing" . }} {{ end }} {{ $json := dict "results" ($.Scratch.Get "results") "colours" ($.Scratch.Get "colours") "weights" ($.Scratch.Get "weights") "duration" ($.Scratch.Get "duration") "easing" ($.Scratch.Get "easing") }} {{ end }} {{ end }} {{ end }} {{ partial "sidebar.html" . }}