Add music page
This commit is contained in:
20
themes/v2/layouts/music/list.html
Normal file
20
themes/v2/layouts/music/list.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{{ define "main" }}
|
||||
<section>
|
||||
<hr>
|
||||
|
||||
<h2>{{ .Title }}</h2>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
{{ range where .Site.RegularPages "Params.exclude_music" "!=" true }}
|
||||
{{ $page := . }}
|
||||
|
||||
{{ range sort (.Resources.Match "*.mp3") "Title" "desc" }}
|
||||
<p>
|
||||
<audio controls src="{{ .RelPermalink }}"></audio><br>
|
||||
“{{ substr .Title 0 -4 }}” – <a href="{{ $page.RelPermalink }}">{{ $page.Title }}</a>
|
||||
</p>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user