Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/yursan9/manis-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLijun <812948+lijuno@users.noreply.github.com>2021-06-01 09:27:33 +0300
committerGitHub <noreply@github.com>2021-06-01 09:27:33 +0300
commit7f537c077f5373013503eeaf7997c6cacf64cda5 (patch)
tree323dd35ab46fd45f001b13357d56ec6183cee7c6
parent69f3a30bc6648a35892e71cfcd52a91adca33038 (diff)
Replace the deprecated Hugo variable
## Problem `Page.Hugo` variable was already deprecated. Hugo gave warning `Page.Hugo is deprecated and will be removed in a future release. Use the global hugo function.` when it ran every time. ## Solution Replace `.Hugo` with `hugo` as the message suggested. Also see https://gohugo.io/variables/hugo/#readout for details.
-rw-r--r--layouts/partials/meta.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html
index bb7922c..aa52105 100644
--- a/layouts/partials/meta.html
+++ b/layouts/partials/meta.html
@@ -1,7 +1,7 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- {{ .Hugo.Generator }}
+ {{ hugo.Generator }}
{{ partial "metatitle" . }}
{{ partial "metadesc" . }}