Skip to content

Commit

Permalink
Replace another 2 .URL occurrences with .Permalink
Browse files Browse the repository at this point in the history
This is basically a completion of theNewDynamic#216
  • Loading branch information
strk committed May 11, 2020
1 parent 6500b99 commit e727b32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/site-navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ul class="pl0 mr3">
{{ range .Site.Menus.main }}
<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 }}
</a>
</li>
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/social-share.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ $title := .Title }}
{{ $url := printf "%s" .URL | absLangURL }}
{{ $url := printf "%s" .Permalink | absLangURL }}
{{ $icon_size := "32px" }}

{{ if not .Params.disable_share }}
Expand All @@ -23,4 +23,4 @@
{{ partialCached "svg/linkedin.svg" (dict "size" $icon_size) $icon_size }}
</a>
</div>
{{ end }}
{{ end }}

0 comments on commit e727b32

Please sign in to comment.