From 8496f3622e2754e8c66909f7504698c58edd284e Mon Sep 17 00:00:00 2001 From: Philip Khor <35039795+philip-khor@users.noreply.github.com> Date: Sat, 4 May 2019 22:39:34 +0800 Subject: [PATCH] Use global hugo function When building the site, I get the following warning: > Page's .Hugo is deprecated and will be removed in a future release. Use the global hugo function. Replacing .Hugo with hugo in header.html removes the warning. --- layouts/partials/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 1c82e77..a0af512 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -28,7 +28,7 @@ - {{ .Hugo.Generator }} + {{ hugo.Generator }} {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}