From 3a2118a89d0140ec8c4d9026e4a2b67e3722e38a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Mon, 9 Sep 2024 08:16:55 +0200 Subject: [PATCH] theme: remove deprecation waring for usage of .Sites.First #912 --- layouts/_default/baseof.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index dd76fc752f..7b05b1674e 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,7 +1,7 @@ {{- partialCached "relearn-meta.gotmpl" . .Path -}} {{- 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 }}