From 87879a726ac03f6689904ca36263f7d53d1ba31f Mon Sep 17 00:00:00 2001 From: John Tobin Date: Tue, 23 Apr 2019 14:17:29 +0100 Subject: [PATCH] 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 * Improve how trailing slash is added. Co-Authored-By: tobinjt * 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. --- layouts/_default/baseof.html | 2 +- netlify.toml | 4 ++-- theme.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 6c25b38..e71af7f 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -70,7 +70,7 @@ {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} - {{ .Hugo.Generator }} + {{ hugo.Generator }} diff --git a/netlify.toml b/netlify.toml index 7128d0b..fbd520b 100644 --- a/netlify.toml +++ b/netlify.toml @@ -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" diff --git a/theme.toml b/theme.toml index 71c7162..fc39cd5 100644 --- a/theme.toml +++ b/theme.toml @@ -19,7 +19,7 @@ features = [ "single-column", "syntax-highlighting" ] -min_version = "0.43" +min_version = "0.54" [author] name = "Luiz F. A. de PrĂ¡"