Audio
This commit is contained in:
parent
4396fabab8
commit
030b820251
19 changed files with 218 additions and 0 deletions
7
layouts/audio/li.html
Normal file
7
layouts/audio/li.html
Normal 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
10
layouts/audio/single.html
Normal 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" . }}
|
29
layouts/section/audio.html
Normal file
29
layouts/section/audio.html
Normal 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" . }}
|
Loading…
Add table
Add a link
Reference in a new issue