Replace another 2 .URL occurrences with .Permalink

This is basically a completion of #216
This commit is contained in:
Sandro Santilli 2020-05-11 20:08:47 +02:00
parent 6500b99ba6
commit e727b32483
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@
<ul class="pl0 mr3"> <ul class="pl0 mr3">
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
<li class="list f5 f4-ns fw4 dib pr3"> <li class="list f5 f4-ns fw4 dib pr3">
<a class="hover-white no-underline white-90" href="{{ .URL }}" title="{{ .Name }} page"> <a class="hover-white no-underline white-90" href="{{ .Permalink }}" title="{{ .Name }} page">
{{ .Name }} {{ .Name }}
</a> </a>
</li> </li>

View File

@ -1,5 +1,5 @@
{{ $title := .Title }} {{ $title := .Title }}
{{ $url := printf "%s" .URL | absLangURL }} {{ $url := printf "%s" .Permalink | absLangURL }}
{{ $icon_size := "32px" }} {{ $icon_size := "32px" }}
{{ if not .Params.disable_share }} {{ if not .Params.disable_share }}
@ -23,4 +23,4 @@
{{ partialCached "svg/linkedin.svg" (dict "size" $icon_size) $icon_size }} {{ partialCached "svg/linkedin.svg" (dict "size" $icon_size) $icon_size }}
</a> </a>
</div> </div>
{{ end }} {{ end }}