From 833edba275b9a39f76ddf5f858eb5131f062b6ca Mon Sep 17 00:00:00 2001 From: Diego Rondini Date: Thu, 22 Dec 2022 10:36:59 +0100 Subject: [PATCH] Fix website build with recent Hugo (#1302) The website currently fails to build with recent versions of Hugo. Apply some minimal changes to allow the website to build with hugo v0.93.3. Signed-off-by: Diego Rondini --- docs/layouts/_default/single.html | 2 +- docs/layouts/partials/head.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/layouts/_default/single.html b/docs/layouts/_default/single.html index 1bd39f226..76ea3f734 100755 --- a/docs/layouts/_default/single.html +++ b/docs/layouts/_default/single.html @@ -24,7 +24,7 @@
-

{{ .Title }} {{ if .IsDraft }} (Draft){{ end }}

+

{{ .Title }} {{ if .Draft }} (Draft){{ end }}

{{ .Content }} diff --git a/docs/layouts/partials/head.html b/docs/layouts/partials/head.html index d39ab315f..dee409d69 100755 --- a/docs/layouts/partials/head.html +++ b/docs/layouts/partials/head.html @@ -10,7 +10,7 @@ {{ .Title }}{{ if not .IsHome }} - {{ .Site.Title }}{{ end }} - {{ .Hugo.Generator }} + {{ hugo.Generator }} {{ with .Site.Params.description }} @@ -73,7 +73,7 @@ - {{ with .RSSLink }} + {{ with .OutputFormats.Get "RSS" }} {{ end }}