From e64dae9c2d381d95f0b3ab63b50009f9220f6405 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Thu, 31 Mar 2022 12:31:38 -0400 Subject: [PATCH] Use consistent indentation in templates --- mixtape.tmpl | 14 ++-- templates/parts.tmpl | 162 +++++++++++++++++++++---------------------- 2 files changed, 88 insertions(+), 88 deletions(-) diff --git a/mixtape.tmpl b/mixtape.tmpl index 5ec5086..d1dcfb3 100644 --- a/mixtape.tmpl +++ b/mixtape.tmpl @@ -51,25 +51,25 @@

Mixtape

- {{template "player" .Tracks}} + {{template "player" .Tracks}} - {{template "playlist" .Tracks}} - {{template "playlist-js"}} + {{template "playlist" .Tracks}} + {{template "playlist-js"}}
{{end}} {{define "track-info"}} - {{if eq .Num 1}} + {{if eq .Num 1}}

[Here I might introduce this mix.]

[Some notes about track 1.]

- {{else if eq .Num 2}} + {{else if eq .Num 2}}

[Some notes about track 2.]

- {{else if eq .Num 5}} + {{else if eq .Num 5}}

[Some notes about track 5.]

- {{end}} + {{end}} {{end}} \ No newline at end of file diff --git a/templates/parts.tmpl b/templates/parts.tmpl index 244e35d..48aa7ef 100644 --- a/templates/parts.tmpl +++ b/templates/parts.tmpl @@ -1,102 +1,102 @@ {{define "player"}} - {{with $x := index . 0}} - - {{end}} + {{with $x := index . 0}} + + {{end}} {{end}} {{define "playlist"}} -
    - {{range $i, $el := .}} - - {{$el.Artist}} - {{$el.Title}} - {{template "track-info" $el}} - - {{end}} -
+
    + {{range $i, $el := .}} + + {{$el.Artist}} - {{$el.Title}} + {{template "track-info" $el}} + + {{end}} +
{{end}} {{define "track-info"}}{{end}} {{define "full-player"}} - {{template "player" .}} - {{template "playlist" .}} - {{template "playlist-js"}} + {{template "player" .}} + {{template "playlist" .}} + {{template "playlist-js"}} {{end}} {{define "playlist-js"}} {{end}} \ No newline at end of file