Add title
on inline badges
This commit is contained in:
parent
b158a2f6fc
commit
05fbc9d8fb
1 changed files with 8 additions and 2 deletions
|
@ -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 -}}
|
||||
|
|
Loading…
Reference in a new issue