mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
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.
This commit is contained in:
parent
d9093afb2d
commit
8496f3622e
@ -28,7 +28,7 @@
|
|||||||
<link rel="apple-touch-icon" href="{{.Site.BaseURL}}img/apple-touch-icon.png">
|
<link rel="apple-touch-icon" href="{{.Site.BaseURL}}img/apple-touch-icon.png">
|
||||||
<link rel="icon" href="{{.Site.BaseURL}}img/favicon.ico">
|
<link rel="icon" href="{{.Site.BaseURL}}img/favicon.ico">
|
||||||
<!-- Generator -->
|
<!-- Generator -->
|
||||||
{{ .Hugo.Generator }}
|
{{ hugo.Generator }}
|
||||||
<!-- RSS -->
|
<!-- RSS -->
|
||||||
<link rel="alternate" type="application/atom+xml" href="{{.Site.BaseURL}}index.xml" title="{{ .Site.Title }}">
|
<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") }}
|
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
|
||||||
|
Loading…
Reference in New Issue
Block a user