From 33e0a081306a504a42d568ad46ab54fc3c32c035 Mon Sep 17 00:00:00 2001 From: David Eisinger Date: Sun, 29 Oct 2023 22:58:10 -0400 Subject: [PATCH] Add music page --- .../index.md | 1 + content/music/_index.md | 12 +++++++++++ themes/v2/layouts/music/list.html | 20 +++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 content/music/_index.md create mode 100644 themes/v2/layouts/music/list.html diff --git a/content/elsewhere/friends-undirected-graph-connections-in-rails/index.md b/content/elsewhere/friends-undirected-graph-connections-in-rails/index.md index b759634..8f3eae0 100644 --- 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 new file mode 100644 index 0000000..c5bb789 --- /dev/null +++ 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 new file mode 100644 index 0000000..1238555 --- /dev/null +++ b/themes/v2/layouts/music/list.html @@ -0,0 +1,20 @@ +{{ define "main" }} +
+
+ +

{{ .Title }}

+ + {{ .Content }} + + {{ range where .Site.RegularPages "Params.exclude_music" "!=" true }} + {{ $page := . }} + + {{ range sort (.Resources.Match "*.mp3") "Title" "desc" }} +

+
+ “{{ substr .Title 0 -4 }}” – {{ $page.Title }} +

+ {{ end }} + {{ end }} +
+{{ end }}