Skip to content
Permalink
Browse files

Replace deprecated .Hugo with hugo. (#171)

* Add trailing slash to remove redirects.

When you request /tags/foo, the web server will redirect you to
/tags/foo/ so the browser needs to make two requests.  Add the trailing
slash in the link so that only one request is needed.

* Add trailing slash to remove redirects.

* Improve how trailing slash is added.

Co-Authored-By: tobinjt <johntobin@johntobin.ie>

* Improve how trailing slash is added.

Co-Authored-By: tobinjt <johntobin@johntobin.ie>

* Add John Tobin.

* Replace deprecated .Hugo with hugo.

Hugo 0.55 deprecates .Hugo and produces this warning:
"Page's .Hugo is deprecated and will be removed in a future release.
 Use the global hugo function."

* Bump version to brute-force figure out when "hugo" function was introduced because it is not documented.

* Bump version to brute-force figure out when "hugo" function was introduced because it is not documented.

* Bump version to brute-force figure out when "hugo" function was introduced because it is not documented.

* Bump version to brute-force figure out when "hugo" function was introduced because it is not documented.

* Bump version to brute-force figure out when "hugo" function was introduced because it is not documented.

* Update minimum required version.
  • Loading branch information...
tobinjt authored and luizdepra committed Apr 23, 2019
1 parent b535058 commit 87879a726ac03f6689904ca36263f7d53d1ba31f
Showing with 4 additions and 4 deletions.
  1. +1 −1 layouts/_default/baseof.html
  2. +2 −2 netlify.toml
  3. +1 −1 theme.toml
@@ -70,7 +70,7 @@
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}

{{ .Hugo.Generator }}
{{ hugo.Generator }}
</head>

<body class="{{ if .Site.Params.rtl }}rtl{{ end }} {{ if .Site.Params.inverted }}inverted{{ end }}">
@@ -3,10 +3,10 @@
command = "make prepare && hugo --source demo --baseURL $URL"

[context.production.environment]
HUGO_VERSION = "0.49.2"
HUGO_VERSION = "0.54.0"

[context.deploy-preview]
command = "make prepare && hugo --source demo --buildFuture --buildDrafts --baseURL $DEPLOY_PRIME_URL"

[context.deploy-preview.environment]
HUGO_VERSION = "0.49.2"
HUGO_VERSION = "0.54.0"
@@ -19,7 +19,7 @@ features = [
"single-column",
"syntax-highlighting"
]
min_version = "0.43"
min_version = "0.54"

[author]
name = "Luiz F. A. de Prá"

0 comments on commit 87879a7

Please sign in to comment.
You can’t perform that action at this time.