theme: remove deprecation waring for usage of .Sites.First #912

This commit is contained in:
Sören Weber 2024-09-09 08:16:55 +02:00
parent c3c032d809
commit 3a2118a89d
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -1,7 +1,7 @@
{{- partialCached "relearn-meta.gotmpl" . .Path -}}
<!DOCTYPE html>
{{- block "storeOutputFormat" . }}{{ end }}
{{- if eq . .Site.Sites.First.Home }}
{{- if .IsHome }}
{{- $hugoVersion := "0.126.0" }}
{{- if lt hugo.Version $hugoVersion }}
{{- errorf "The Relearn theme requires Hugo %s or later" $hugoVersion }}