diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..d95fed0 --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,9 @@ +{{- /* handle redirects */}} +{{- with index (default dict (index $.Page.Params "values")) "redirect" }} +{{- $delay := default 0 (index . "delay") }} +{{- $url := index . "url" }} +{{- if not $url }} +{{- errorf "missing, empty or null value at 'values.redirect.url': %s" .Position }} +{{- end }} + +{{- end }}