mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-22 23:37:53 +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 -}}
|
||||
<!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 }}
|
||||
|
|
Loading…
Reference in a new issue