commit 33e0a081306a504a42d568ad46ab54fc3c32c035
parent 016eb90a792c10c3c988d4460a3f71d95d81c26c
Author: David Eisinger <[email protected]>
Date: Sun, 29 Oct 2023 22:58:10 -0400
Add music page
Diffstat:
3 files changed, 33 insertions(+), 0 deletions(-)
diff --git a/content/elsewhere/friends-undirected-graph-connections-in-rails/index.md b/content/elsewhere/friends-undirected-graph-connections-in-rails/index.md
@@ -4,6 +4,7 @@ date: 2021-06-09T00:00:00+00:00
draft: false
canonical_url: https://www.viget.com/articles/friends-undirected-graph-connections-in-rails/
featured: true
+exclude_music: true
---
No, sorry, not THOSE friends. But if you're interested in how to do
diff --git a/content/music/_index.md b/content/music/_index.md
@@ -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
diff --git a/themes/v2/layouts/music/list.html b/themes/v2/layouts/music/list.html
@@ -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 }}