Explorar o código

fix: people widget

Fix v4.2.2
Fix #1037
Dongdong Tian %!s(int64=6) %!d(string=hai) anos
pai
achega
00aada46d2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      layouts/partials/widgets/people.html

+ 1 - 1
layouts/partials/widgets/people.html

@@ -26,7 +26,7 @@
   {{ $avatar := (.Resources.ByType "image").GetMatch "*avatar*" }}
   {{/* Get link to user's profile page. */}}
   {{ $link := "" }}
-  {{ with site.GetPage (printf "/authors/%s" (path.Base (path.Split .Path).File.Dir)) }}
+  {{ with site.GetPage (printf "/authors/%s" (path.Base (path.Split .Path).Dir)) }}
     {{ $link = .RelPermalink }}
   {{ end }}
   <div class="col-12 col-sm-auto people-person">