{{#each articles}}
	{{#if event}}
		<article tabindex="-1" itemscope itemtype="http://schema.org/Event">
			<a href="{{url}}" class="media media-reset-small" itemprop="url">
				<div class="media-body">
					<header>
						<h2 class="h-standfirst" itemprop="name">{{{header}}}</h2>
					</header>
					<p itemprop="description">{{{text}}}</p>

					<div class="media calendar-date{{#if canceled}} calendar-canceled{{/if}}{{#if recurrent}} calendar-recurrent{{/if}}">
						<div class="media-image" aria-hidden="true">
							<div class="calendar-text">
								<div class="month">{{month}}</div>
								<div class="day">{{day}}</div>
							</div>
						</div>
						<div class="media-body">
							{{#if canceled}}<p class="calendar-canceled-info"><span class="icon icon-remove" aria-hidden="true"></span> Inställt</p>{{/if}}
							{{#if recurrent}}<p class="calendar-recurrent-info"><span class="icon icon-refresh" aria-hidden="true"></span> Återkommande</p>{{/if}}
							{{#if recurrentintervalevent}}<p class="calendar-recurrent-info"><strong>Återkommande intervall:</strong> {{recurrentintervalevent}}</p>{{/if}}
							{{#if date}}<p><strong>Datum: </strong> <span itemprop="startDate" content="2016-07-10T06:00">{{date}}</span></p>{{/if}}
							{{#if time}}<p><strong>Tid: </strong>{{time}}</p>{{/if}}
							{{#if location}}<p><strong>Plats: </strong><span itemprop="location">{{location}}</span></p>{{/if}}
							{{#if price}}<p><strong>Kostnad: </strong><span itemprop="price">{{price}}</span></p>{{/if}}
						</div>
					</div>
				</div>
			</a>
		</article>
	{{else if document}}
		<article tabindex="-1" itemscope itemtype="http://schema.org/Event">
			<a href="{{url}}" class="media document" itemprop="url">
				<div class="media-image document-icon" aria-hidden="true">
					<span class="icon icon-thin-063_paper_document_file_word"></span>
				</div>
				<div class="media-body">
					<header>
						<h1 class="h-standfirst" itemprop="name">{{{header}}} <span class="size">({{size}})</span></h1>
					</header>
				</div>
			</a>
		</article>
	{{else}}
		<article>
			<a href="{{url}}" data-hitid="{{hitid}}" data-query="{{../query}}" data-trackid="{{../trackid}}">
				<header>
					<h1 class="h-standfirst">{{{title}}}</h1>
				</header>
				<p>{{{Excerpt}}}</p>
				<p class="tag">{{#if date}}{{date}} | {{/if}}{{tag}}</p>
			</a>
		</article>
	{{/if}}
{{/each}}
