
{% if documents[type]|length > 0 %}
	<ul class='list--{{ layout }}'>

		{% for item in documents[type]|sort(attribute="filename") %}


			<li class="list__item">
				{% if layout == "list" %}
						
					<span class="date">{{ item['start_datetime'] | prettydate }} </span>
					<b>{{ item['title'] }}</b>
				{%  else %}
					
						{% if item['image'] %}
							<img src="{{ item['image'] }}" class="m-0" alt="" />
						{% endif %}
						<h5 class="m-0" ><a href="/{{ type }}/{{ item['slug'] }}.html">{{ item['title'] }}</a></h5>
						{% if item['excerpt'] %}
							<p>{{ item['excerpt'] }}</p>
						{% endif %}
					

				{% endif %}
				</li>

	
			
		{% endfor %}

	</ul>
{% endif %}