mirror of https://github.com/luizdepra/hugo-coder.git

John Tobin
23.17.2019 87879a726ac03f6689904ca36263f7d53d1ba31f
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.
3 files modified
8 ■■■■ changed files
layouts/_default/baseof.html 2 ●●● patch | view | raw | blame | history
netlify.toml 4 ●●●● patch | view | raw | blame | history
theme.toml 2 ●●● patch | view | raw | blame | history
layouts/_default/baseof.html
@@ -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 }}">
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"
theme.toml
@@ -19,7 +19,7 @@
  "single-column",
  "syntax-highlighting"
]
min_version = "0.43"
min_version = "0.54"
[author]
  name = "Luiz F. A. de PrĂ¡"