[gnomegr-web] .URL has been deprecated



commit 12e4450b9675abb89df925db7808e4d50e30fa20
Author: Andrea Veri <averi redhat com>
Date:   Fri Apr 15 16:44:35 2022 +0200

    .URL has been deprecated

 themes/deneb-hugo-theme/layouts/_default/list.html | 4 ++--
 themes/deneb-hugo-theme/layouts/partials/head.html | 4 ++--
 themes/deneb-hugo-theme/layouts/partials/nav.html  | 6 +++---
 3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/themes/deneb-hugo-theme/layouts/_default/list.html 
b/themes/deneb-hugo-theme/layouts/_default/list.html
index 81e64ce..a8f9253 100644
--- a/themes/deneb-hugo-theme/layouts/_default/list.html
+++ b/themes/deneb-hugo-theme/layouts/_default/list.html
@@ -58,12 +58,12 @@
           <ul class="pager main-pager">
             {{ if .Paginator.HasPrev }}
               <li class="previous">
-                <a href="{{ .URL }}page/{{ .Paginator.Prev.PageNumber }}">&larr; {{ i18n "newerPosts" }}</a>
+                <a href="{{ "" | absURL }}/page/{{ .Paginator.Prev.PageNumber }}">&larr; {{ i18n 
"newerPosts" }}</a>
               </li>
             {{ end }}
             {{ if .Paginator.HasNext }}
               <li class="next">
-                <a href="{{ .URL }}page/{{ .Paginator.Next.PageNumber }}">{{ i18n "olderPosts" }} &rarr;</a>
+                <a href="{{ "" | absURL }}/page/{{ .Paginator.Next.PageNumber }}">{{ i18n "olderPosts" }} 
&rarr;</a>
               </li>
             {{ end }}
           </ul>
diff --git a/themes/deneb-hugo-theme/layouts/partials/head.html 
b/themes/deneb-hugo-theme/layouts/partials/head.html
index 01d200d..dd6164b 100644
--- a/themes/deneb-hugo-theme/layouts/partials/head.html
+++ b/themes/deneb-hugo-theme/layouts/partials/head.html
@@ -30,13 +30,13 @@
 {{- with .Site.Params.fb_app_id }}
   <meta property="fb:app_id" content="{{ . }}" />
 {{- end }}
-  <meta property="og:url" content="{{ .URL | absLangURL }}" />
+  <meta property="og:url" content="{{ "" | absLangURL }}" />
   <meta property="og:type" content="website" />
   <meta property="og:site_name" content="{{ .Site.Title }}" />
 <!-- Hugo Version number -->
   {{ .Hugo.Generator -}}
 <!-- Links and stylesheets -->
-  <link rel="canonical" href="{{ .URL | absLangURL }}" />
+  <link rel="canonical" href="{{ "" | absLangURL }}" />
   <link rel="alternate" href="{{ "index.xml" | absLangURL }}" type="application/rss+xml" title="{{ 
.Site.Title }}">
   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.7.1/katex.min.css"; 
integrity="sha384-wITovz90syo1dJWVh32uuETPVEtGigN07tkttEqPv+uR2SE/mbQcG7ATL28aI9H0" crossorigin="anonymous">
   <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"; 
/>
diff --git a/themes/deneb-hugo-theme/layouts/partials/nav.html 
b/themes/deneb-hugo-theme/layouts/partials/nav.html
index 09442d0..14162a4 100644
--- a/themes/deneb-hugo-theme/layouts/partials/nav.html
+++ b/themes/deneb-hugo-theme/layouts/partials/nav.html
@@ -9,7 +9,7 @@
         <span class="icon-bar bottom-bar"></span>
       </button>
       <a class="gnome-navbar-brand" href="{{ "" | absLangURL }}">
-        <img src="{{ $.Site.BaseURL }}/img/gnome-logo.svg" />
+        <img src="{{ "" | absURL }}/img/gnome-logo.svg" />
       </a>
     </div>
 
@@ -21,13 +21,13 @@
               <a class="navlinks-parent" href="javascript:void(0)">{{ .Name }}</a>
               <div class="navlinks-children">
                 {{ range .Children }}
-                  <a href="{{ .URL | relLangURL }}">{{ .Name }}</a>
+                  <a href="{{ "" | relLangURL }}">{{ .Name }}</a>
                 {{ end }}
               </div>
             </li>
           {{ else }}
             <li>
-              <a title="{{ .Name }}" href="{{ .URL  | relLangURL }}">{{ .Name }}</a>
+              <a title="{{ .Name }}" href="{{ "" | relLangURL }}">{{ .Name }}</a>
             </li>
           {{ end }}
         {{ end }}


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