Skip to content

Commit

Permalink
Update docs to use filename instead of humanized name
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Jul 7, 2020
1 parent 11d1d53 commit 5ef4d31
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/layouts/partials/icons.html
Expand Up @@ -12,7 +12,6 @@ <h2 id="icons" class="mb-0">Icons</h2>
{{- range (readDir $dirName) -}}
{{- $filenameWithExt := split .Name "." -}}
{{- $filename := index $filenameWithExt 0 -}}
{{- $name := humanize $filename -}}
<li class="col mb-4" data-tags="{{ with $.Site.GetPage "icons" $filename }}{{ with .Params.tags }}{{ delimit . " " }}{{ end }}{{ end }}">
<a class="d-block text-dark text-decoration-none" href="/icons/{{ $filename }}/">
<div class="p-3 py-4 mb-2 bg-light text-center rounded">
Expand All @@ -21,7 +20,7 @@ <h2 id="icons" class="mb-0">Icons</h2>
</svg>
</div>
<div class="name text-muted text-decoration-none text-center pt-1">
{{ $name }}
{{ $filename }}
</div>
</a>
</li>
Expand Down

0 comments on commit 5ef4d31

Please sign in to comment.