Kaynağa Gözat

fix: people widget

Fix v4.2.2
Fix #1037
Dongdong Tian 6 yıl önce
ebeveyn
işleme
00aada46d2
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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">