[br-gnome-org: 4/5] Fix Hugo .Hugo deprecation



commit d5d575790d2c95cf6818d5e1e004cd92899ab784
Author: Rafael Fontenelle <rafaelff gnome org>
Date:   Fri Jun 21 15:35:46 2019 -0300

    Fix Hugo .Hugo deprecation
    
    Deprecated since Hugo version 0.55.0, showing the warning:
    
    "Page’s .Hugo is deprecated and will be removed in a future
    release. Use the global hugo function."

 themes/gnomeish/i18n/en.yaml               | 2 +-
 themes/gnomeish/i18n/ja.yaml               | 2 +-
 themes/gnomeish/i18n/pt-br.yaml            | 2 +-
 themes/gnomeish/i18n/ru.yaml               | 2 +-
 themes/gnomeish/layouts/partials/head.html | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/themes/gnomeish/i18n/en.yaml b/themes/gnomeish/i18n/en.yaml
index 64c2f7b..ad03e37 100644
--- a/themes/gnomeish/i18n/en.yaml
+++ b/themes/gnomeish/i18n/en.yaml
@@ -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
diff --git a/themes/gnomeish/i18n/ja.yaml b/themes/gnomeish/i18n/ja.yaml
index c7c77b2..4cf3133 100644
--- a/themes/gnomeish/i18n/ja.yaml
+++ b/themes/gnomeish/i18n/ja.yaml
@@ -24,7 +24,7 @@
 
 # Footer
 - id: poweredBy # Accepts HTML
-  translation: '起動力に<a href="http://gohugo.io";>Hugo v{{ .Hugo.Version }}</a> &nbsp;&bull;&nbsp; テーマに<a 
href="http://deanattali.com/beautiful-jekyll/";>Beautiful Jekyll</a>に基づいている<a 
href="https://github.com/halogenica/beautifulhugo";>Beautiful Hugo</a>'
+  translation: '起動力に<a href="http://gohugo.io";>Hugo v{{ .Site.Hugo.Version }}</a> &nbsp;&bull;&nbsp; テーマに<a 
href="http://deanattali.com/beautiful-jekyll/";>Beautiful Jekyll</a>に基づいている<a 
href="https://github.com/halogenica/beautifulhugo";>Beautiful Hugo</a>'
 
 # Navigation
 - id: toggleNavigation
diff --git a/themes/gnomeish/i18n/pt-br.yaml b/themes/gnomeish/i18n/pt-br.yaml
index b7fc5a7..743c679 100644
--- a/themes/gnomeish/i18n/pt-br.yaml
+++ b/themes/gnomeish/i18n/pt-br.yaml
@@ -24,7 +24,7 @@
 
 # Footer
 - id: poweredBy # Accepts HTML
-  translation: '<a href="http://gohugo.io";>Hugo v{{ .Hugo.Version }}</a> powered &nbsp;&bull;&nbsp; Tema por 
<a href="http://deanattali.com/beautiful-jekyll/";>Beautifulhugo</a> adaptado para <a 
href="https://github.com/halogenica/beautifulhugo";>GNOMEish</a>'
+  translation: '<a href="http://gohugo.io";>Hugo v{{ .Site.Hugo.Version }}</a> powered &nbsp;&bull;&nbsp; 
Tema por <a href="http://deanattali.com/beautiful-jekyll/";>Beautifulhugo</a> adaptado para <a 
href="https://github.com/halogenica/beautifulhugo";>GNOMEish</a>'
 
 # Navigation
 - id: toggleNavigation
diff --git a/themes/gnomeish/i18n/ru.yaml b/themes/gnomeish/i18n/ru.yaml
index deeaecf..70d6eae 100644
--- a/themes/gnomeish/i18n/ru.yaml
+++ b/themes/gnomeish/i18n/ru.yaml
@@ -24,7 +24,7 @@
 
 # Footer
 - id: poweredBy # Accepts HTML
-  translation: 'На базе <a href="http://gohugo.io";>Hugo v{{ .Hugo.Version }}</a> &nbsp;&bull;&nbsp; Тема <a 
href="https://github.com/halogenica/beautifulhugo";>Beautiful Hugo</a> на базе <a 
href="http://deanattali.com/beautiful-jekyll/";>Beautiful Jekyll</a>'
+  translation: 'На базе <a href="http://gohugo.io";>Hugo v{{ .Site.Hugo.Version }}</a> &nbsp;&bull;&nbsp; 
Тема <a href="https://github.com/halogenica/beautifulhugo";>Beautiful Hugo</a> на базе <a 
href="http://deanattali.com/beautiful-jekyll/";>Beautiful Jekyll</a>'
 
 # Navigation
 - id: toggleNavigation
diff --git a/themes/gnomeish/layouts/partials/head.html b/themes/gnomeish/layouts/partials/head.html
index ecd4703..458192c 100644
--- a/themes/gnomeish/layouts/partials/head.html
+++ b/themes/gnomeish/layouts/partials/head.html
@@ -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="{{ .RelPermalink | absLangURL }}" />
   <link rel="alternate" href="{{ "index.xml" | absLangURL }}" type="application/rss+xml" title="{{ 
.Site.Title }}">


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]