{% if include.lookup %} {% assign citation = site.data.citations | where_exp: "citation", "citation.id == include.lookup or citation.title contains include.lookup" | first %} {% else %} {% assign citation = include %} {% endif %}
{% if include.style == "rich" %} {{ citation.title | default: {% endif %}
{% assign type = site.data.types[citation.type] %} {% include icon.html icon=type.icon %} {{ citation.title | default: "[no title info]" }}
10 %} data-tooltip="{{ citation.authors | join: ", " | xml_escape }}" {% endif %} tabindex="0" > {{ citation.authors | join: "," | split: "," | array_carve: 5 | join: ", " | markdownify | remove: "

" | remove: "

" | default: "[no author info]" }}
{{- citation.publisher | default: "[no publisher info]" -}}  ·  {{- citation.date | default: "[no date info]" | date: "%d %b %Y" -}}  ·  {{- citation.id | default: "[no id info]" -}}
{% if include.style == "rich" %} {% if citation.description %}
{{ citation.description | markdownify | remove: "

" | remove: "

" }}
{% endif %} {% if citation.buttons.size > 0 %}
{% for button in citation.buttons %} {% include button.html type=button.type icon=button.icon text=button.text link=button.link style="bare" %} {% endfor %}
{% endif %} {% if citation.tags.size > 0 or citation.repo %} {% include tags.html tags=citation.tags repo=citation.repo %} {% endif %} {% endif %}