Add music page
This commit is contained in:
@@ -4,6 +4,7 @@ date: 2021-06-09T00:00:00+00:00
|
|||||||
draft: false
|
draft: false
|
||||||
canonical_url: https://www.viget.com/articles/friends-undirected-graph-connections-in-rails/
|
canonical_url: https://www.viget.com/articles/friends-undirected-graph-connections-in-rails/
|
||||||
featured: true
|
featured: true
|
||||||
|
exclude_music: true
|
||||||
---
|
---
|
||||||
|
|
||||||
No, sorry, not THOSE friends. But if you're interested in how to do
|
No, sorry, not THOSE friends. But if you're interested in how to do
|
||||||
|
|||||||
12
content/music/_index.md
Normal file
12
content/music/_index.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
title: "Music"
|
||||||
|
date: 2023-10-17T10:50:41-04:00
|
||||||
|
draft: false
|
||||||
|
---
|
||||||
|
|
||||||
|
Here's some music I've recorded.
|
||||||
|
|
||||||
|
I mostly use a [Novation Circuit Tracks][1] connected to [Yamaha Reface CP][2], though I'm hoping to add some live instruments in future tracks.
|
||||||
|
|
||||||
|
[1]: https://us.novationmusic.com/products/circuit-tracks
|
||||||
|
[2]: https://usa.yamaha.com/products/music_production/synthesizers/reface/reface_cp.html
|
||||||
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