Sfoglia il codice sorgente

feat(docs): Title case breadcrumbs

Michael Bromley 6 anni fa
parent
commit
d8df6f77e8
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      docs/layouts/partials/breadcrumbs.html

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

@@ -34,7 +34,7 @@
     {{ if .currentPage.Parent }}
     {{ if .currentPage.Parent }}
         {{ template "breadcrumb" dict "currentPage" .currentPage.Parent }}
         {{ template "breadcrumb" dict "currentPage" .currentPage.Parent }}
     {{ end }}
     {{ 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) }}
     {{ if (ne .currentPage.Parent .IsHome) }}
         <li>
         <li>
             {{ if eq .id .currentPage.UniqueID }}
             {{ if eq .id .currentPage.UniqueID }}