mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 16:54:49 +08:00
theme: remove deprecation waring for usage of .Sites.First #912
This commit is contained in:
parent
c3c032d809
commit
3a2118a89d
@ -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…
x
Reference in New Issue
Block a user