nomnom/layouts/partials/recipe_list_entry.html

24 lines
650 B
HTML

<li>
<a href="{{ .Permalink }}">
{{ .Title }}
<span class="badges">
{{ with .Params.veganness }}
<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-{{ . }}"
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>