diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 58da2633c6..fe499f19d1 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -5,6 +5,12 @@ {{- if eq $outputFormat "searchpage" }} {{- $basename = partial "BaseName.hugo" $format.RelPermalink }} {{- end }} +{{- if eq . .Site.Sites.First.Home }} + {{- $minHugoVersion := "0.95.0" }} + {{- if lt hugo.Version $minHugoVersion }} + {{- errorf "The Relearn theme requires Hugo %s or later" $minHugoVersion }} + {{- end }} +{{- end }}
{{- partial "meta.html" . }}