{{ define "main" }}
			{{ "<!-- Main -->" | safeHTML }}
				<section id="main" class="container">
					<header>
						<h2>{{ if .Draft }}DRAFT: {{end}}{{ .Params.title }}</h2>
						{{ with .Params.passage }}<p>{{ . }}</p>{{ end }}
					</header>
					<div class="box">
						<div class="row">
							<div class="col-6 col-12-mobilep">
							{{ with .Params.images }}
								<span class="image fit"><img src="{{ index . 0 | absURL }}" alt=""></span>
							{{ end }}
							</div>
							<div class="col-6 col-12-mobilep">
								{{ range .Params.audio }}
									{{ $audio_name_arr := split . "." }}
									{{ $audio_type := index $audio_name_arr (sub (len $audio_name_arr) 1) }}
									<ul class="actions small">
										<li>
										<audio id="player" controls>
											<source src="{{ . }}" preload="auto" type="audio/{{ $audio_type }}">
											Your browser doesn't support embedded audio.
										</audio>
										</li>
										<li>
											<a href="{{ . }}" class="button alt small" download><i class="icon fas fa-download"></i>&nbsp;Download</a>
										</li>
									</ul>
								{{ end }} {{/* range .Params.audio */}}
							{{ .Content }}
							{{ if .Params.preachers }}
								<p>Preacher:
									{{ range $index, $key := .Params.preachers }}
									{{ if $index }}, {{ end }}
									{{ if gt (len $key) 0 }}
										<a href="/preachers/{{ $key | urlize }}/">{{ $key }}</a>
									{{ end }} {{/* if */}}
									{{ end }} {{/* range */}}
							{{ end }} {{/* end if preachers */}}
							{{ if .Params.series }}
								<p> Series:
									{{ range $index, $key := .Params.series }}
									{{ if $index }}, {{ end }}
									{{ if gt (len $key) 0 }}
										<a href="/series/{{ $key | urlize }}/">{{ $key }}</a>
									{{ end }} {{/* if */}}
									{{ end }} {{/* range */}}
								</p>
							{{ end }} {{/* end if series */}}
							{{ if .Params.tags }}
								<p>Topics:
									{{ range $index, $key:= .Params.tags }}
										{{ if $index }}, {{ end }}
										{{ if gt (len $key) 0 }}
							  			<a href="/tags/{{$key | urlize }}/">#{{ $key }}</a>
											{{ end }} {{/* if gt len */}}
										{{ end }} {{/* range */}}
								</p>
							{{ end }} {{/* end if tags */}}
							{{ with .Params.date }}<p>Date: {{ . | dateFormat "January 2, 2006"}}</p>{{ end }}
							</div>
						</div>
					</div>
				</section>
{{ end }}
