Use title instead of humanize

- https://gohugo.io/functions/title/
This commit is contained in:
Aditya Telange committed 2021-05-01 22:13:54 +05:30
1 parent 167ca42ce3
commit 0e3f44ff17
5 files changed
+9 -9

No files matched your search

+2 -2
View File
@@ -12,8 +12,8 @@
{{- with .buttons }}
<div class="buttons">
{{- range . }}
<a class="button" href="{{ trim .url " " }}" rel="noopener" title="{{ .name | humanize }}">
<span class="button-inner">{{ .name }}</span>
<a class="button" href="{{ trim .url " " }}" rel="noopener" title="{{ .name | title }}">
<span class="button-inner">{{ .name | title }}</span>
</a>
{{- end }}
</div>