Skip to content
Snippets Groups Projects
Commit 22a70d1a authored by Martyn Welch's avatar Martyn Welch Committed by Martyn Welch
Browse files

Replace deprecated ".Page.Hugo" usage


The variable ".Hugo" has been deprecated syntax since v0.55. We get a
warning about this each time the site is built:

    Page.Hugo is deprecated and will be removed in a future release. Use the global hugo function.

Tweak the theme to utilise the correct new syntax to remove the errors
making it clearer what is happening when something goes wrong.

Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.com>
parent b783a244
No related branches found
No related tags found
1 merge request!219Review of concept documents
......@@ -24,7 +24,7 @@
# Footer
- id: poweredBy # Accepts HTML
translation: '<a href="http://gohugo.io">Hugo v{{ .Hugo.Version }}</a> powered &nbsp;&bull;&nbsp; Theme by <a href="http://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a> adapted to <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a>'
translation: '<a href="http://gohugo.io">Hugo v{{ .Site.Hugo.Version }}</a> powered &nbsp;&bull;&nbsp; Theme by <a href="http://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a> adapted to <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a>'
# Navigation
- id: toggleNavigation
......
......@@ -34,7 +34,7 @@
<meta property="og:type" content="website" />
<meta property="og:site_name" content="{{ .Site.Title }}" />
<!-- Hugo Version number -->
{{ .Hugo.Generator -}}
{{ hugo.Generator -}}
<!-- Links and stylesheets -->
<link rel="canonical" href="{{ .URL | absLangURL }}" />
<link rel="alternate" href="{{ "index.xml" | absLangURL }}" type="application/rss+xml" title="{{ .Site.Title }}">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment