<li class="py-3 space-y-1">
<div class="font-medium">
{%- if let Some(link) = work.link %}
<a href="{{ link }}" class="hover:underline">{{ work.title }}</a>
{%- else %}
{{ work.title }}
{%- endif %}
</div>
{%- if !work.authors.is_empty() %}
<div class="text-sm">{{ work.authors }}</div>
{%- endif %}
<div class="text-sm text-muted-foreground">
{{- work.kind }}
{%- if !work.year.is_empty() %} · {{ work.year }}{% endif %}
{%- if !work.container.is_empty() %} · {{ work.container }}{% endif %}
{%- if let Some(doi_url) = work.doi_url %} · <a href="{{ doi_url }}" class="hover:underline">{{ doi_url }}</a>{% endif %}
</div>
</li>