mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
theme: break build if minimum Hugo version is not matched #719
This commit is contained in:
parent
f1a98e098f
commit
b91fb6e9e7
1 changed files with 6 additions and 0 deletions
|
@ -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 }}
|
||||
<html lang="{{ .Page.Language | default "en" }}" dir="{{ T "Reading-direction" | default "ltr" }}">
|
||||
<head>
|
||||
{{- partial "meta.html" . }}
|
||||
|
|
Loading…
Reference in a new issue