Add title on inline badges

This commit is contained in:
Théophile Bastian 2019-05-11 21:54:32 +02:00
parent b158a2f6fc
commit 05fbc9d8fb

View file

@ -3,10 +3,16 @@
{{ .Title }}
<span class="badges">
{{ with .Params.veganness }}
<span class="badge badge-veganness badge-veganness-{{ . }}">v</span>
<span
class="badge badge-veganness badge-veganness-{{ . }}"
title="{{ partial "humanize_veganness.html" . }}"
>v</span>
{{ end }}
{{ with .Params.season }}
<span class="badge badge-season badge-season-{{ . }}">
<span
class="badge badge-season badge-season-{{ . }}"
title="{{ partial "humanize_season.html" . }}"
>
{{- if . | eq "summer" -}}✿
{{- else if . | eq "winter" -}}<i class="fa fa-snowflake-o" aria-hidden="true"></i>
{{- end -}}