This commit is contained in:
Matthew Dillon 2015-06-21 11:07:01 -08:00
parent 4396fabab8
commit 030b820251
19 changed files with 218 additions and 0 deletions

7
layouts/audio/li.html Normal file
View file

@ -0,0 +1,7 @@
<h4><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h4>
<a href="{{ .Params.songurl }}" target="_blank">Download</a>
<br>
<audio src="{{ .Params.songurl }}" controls>
Your browser does not support the <code>audio</code> element.
</audio>
{{ .Content }}

10
layouts/audio/single.html Normal file
View file

@ -0,0 +1,10 @@
{{ partial "head.html" . }}
{{ partial "header.html" . }}
<main class="siteContent container">
<h1>MRD Audio</h1>
{{ .Render "li" }}
</main>
{{ partial "footer.html" . }}
{{ partial "foot.html" . }}

View file

@ -0,0 +1,29 @@
{{ partial "head.html" . }}
{{ partial "header.html" . }}
<main class="siteContent container">
<h1>MRD Audio</h1>
{{ range $index, $element := .Data.Pages }}
{{ if eq (mod $index 2) 0 }}
<div class="row gutter">
<div class="column-7">
{{ else }}
<div class="column-7 push-2">
{{ end }}
{{ .Render "li" }}
{{ if eq (mod $index 2) 0 }}
</div>
{{ else }}
</div>
</div>
{{ end }}
{{ end }}
{{ if eq (mod (len .Data.Pages) 2) 1 }}
</div>
{{ end }}
</main>
{{ partial "footer.html" . }}
{{ partial "foot.html" . }}