ソースを参照

feat(docs): Title case breadcrumbs

Michael Bromley 7 年 前
コミット
d8df6f77e8
1 ファイル変更1 行追加1 行削除
  1. 1 1
      docs/layouts/partials/breadcrumbs.html

+ 1 - 1
docs/layouts/partials/breadcrumbs.html

@@ -34,7 +34,7 @@
     {{ if .currentPage.Parent }}
         {{ template "breadcrumb" dict "currentPage" .currentPage.Parent }}
     {{ end }}
-    {{ $title := cond (eq .currentPage.RelPermalink "/docs/" ) "Docs" .currentPage.Title }}
+    {{ $title := cond (eq .currentPage.RelPermalink "/docs/" ) "Docs" (title .currentPage.Title) }}
     {{ if (ne .currentPage.Parent .IsHome) }}
         <li>
             {{ if eq .id .currentPage.UniqueID }}