This repository has been archived on 2024-05-04. You can view files and clone it, but cannot push or open issues or pull requests.
Homepage/layouts/partials/head.html

13 lines
493 B
HTML

{{- /* 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 }}
<link rel="canonical" href="{{ $url }}">
<meta name="robots" content="noindex">
<meta http-equiv="refresh" content="{{ $delay }}; url={{ $url }}">
{{- end }}
<link rel="stylesheet" href="/styles.css">