mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
theme: remove deprecation waring for usage of .Sites.First #912
This commit is contained in:
parent
c3c032d809
commit
3a2118a89d
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
{{- partialCached "relearn-meta.gotmpl" . .Path -}}
|
{{- partialCached "relearn-meta.gotmpl" . .Path -}}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
{{- block "storeOutputFormat" . }}{{ end }}
|
{{- block "storeOutputFormat" . }}{{ end }}
|
||||||
{{- if eq . .Site.Sites.First.Home }}
|
{{- if .IsHome }}
|
||||||
{{- $hugoVersion := "0.126.0" }}
|
{{- $hugoVersion := "0.126.0" }}
|
||||||
{{- if lt hugo.Version $hugoVersion }}
|
{{- if lt hugo.Version $hugoVersion }}
|
||||||
{{- errorf "The Relearn theme requires Hugo %s or later" $hugoVersion }}
|
{{- errorf "The Relearn theme requires Hugo %s or later" $hugoVersion }}
|
||||||
|
|
Loading…
Reference in a new issue