{# Displays a single of dataset. package - A package to display. item_class - The class name to use on the list item. hide_resources - If true hides the resources (default: false). banner - If true displays a popular banner (default: false). truncate - The length to trucate the description to (default: 180) truncate_title - The length to truncate the title to (default: 80). Example: {% snippet 'snippets/package_item.html', package=c.datasets[0] %} #} {% set organization = package.organization %} {% set truncate = truncate or 180 %} {% if organization and show_organization %} {% set truncate = truncate - organization|length if organization|length < truncate else 10 %} {% endif %} {% set title = package.title or package.name %} {% set notes = h.markdown_extract(package.notes | striptags, extract_length=truncate) %} {% set resource_limit = resource_limit or 7 %}
{{ organization.title or organization.name }} —
{% endif %} {% if notes %}