nomnom/layouts/partials/recipe_list_entry.html

25 lines
650 B
HTML
Raw Normal View History

<li>
<a href="{{ .Permalink }}">
{{ .Title }}
<span class="badges">
{{ with .Params.veganness }}
2019-05-11 21:54:32 +02:00
<span
class="badge badge-veganness badge-veganness-{{ . }}"
title="{{ partial "humanize_veganness.html" . }}"
>v</span>
{{ end }}
{{ with .Params.season }}
2019-05-11 21:54:32 +02:00
<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 -}}
</span>
{{ end }}
</span>
</a>
</li>