Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs to use filename instead of humanized name #349

Merged
merged 1 commit into from Jul 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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