diff options
| author | Philip Khor <35039795+philip-khor@users.noreply.github.com> | 2019-05-04 22:39:34 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-04 22:39:34 +0800 |
| commit | 8496f3622e2754e8c66909f7504698c58edd284e (patch) | |
| tree | 655d9a2921f676905a8f8c93da51e394946deafd | |
| parent | d9093afb2d1151811f2e14c68eadd3c76e11b7de (diff) | |
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.
| -rw-r--r-- | layouts/partials/header.html | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ <link rel="apple-touch-icon" href="{{.Site.BaseURL}}img/apple-touch-icon.png"> <link rel="icon" href="{{.Site.BaseURL}}img/favicon.ico"> <!-- Generator --> - {{ .Hugo.Generator }} + {{ hugo.Generator }} <!-- RSS --> <link rel="alternate" type="application/atom+xml" href="{{.Site.BaseURL}}index.xml" title="{{ .Site.Title }}"> {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} |
