diff options
Diffstat (limited to 'layouts/_default/single.html')
| -rw-r--r-- | layouts/_default/single.html | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..38cf763 --- /dev/null +++ b/layouts/_default/single.html | |||
| @@ -0,0 +1,74 @@ | |||
| 1 | {{ define "main" }} | ||
| 2 | |||
| 3 | {{/* Breadcrumbs */}} | ||
| 4 | |||
| 5 | <div {{ if .Param "autonumber" }} class="autonumber" {{ end }}> | ||
| 6 | |||
| 7 | <div class="single-intro-container"> | ||
| 8 | |||
| 9 | {{/* Title and Summary */}} | ||
| 10 | |||
| 11 | <h2 class="single-title">{{ .Title }}</h2> | ||
| 12 | {{ if .Param "author" }} | ||
| 13 | <p>By: {{ .Param "author" }}</p> | ||
| 14 | {{ end }} | ||
| 15 | |||
| 16 | <div class="controls"> | ||
| 17 | <div> | ||
| 18 | <label class="chord-toggle"> | ||
| 19 | <input type="checkbox" id="toggle-chords" checked> | ||
| 20 | <span class="slider"></span> | ||
| 21 | <span class="label-text">Show Chords</span> | ||
| 22 | </label> | ||
| 23 | </div> | ||
| 24 | |||
| 25 | <div > | ||
| 26 | <label for="key-selector">Key:</label> | ||
| 27 | <select id="key-selector" data-original-key="{{ with .Params.key }}{{ . }}{{ else }}C{{ end }}"> | ||
| 28 | {{ $allKeys := slice "C" "C#/Db" "D" "D#/Eb" "E" "F" "F#/Gb" "G" "G#/Ab" "A" "A#/Bb" "B" }} | ||
| 29 | {{ $currentKey := .Params.key | default "C" }} | ||
| 30 | {{ range $k := $allKeys }} | ||
| 31 | {{ $cleanKey := (index (split $k "/") 0) }} | ||
| 32 | <option value="{{ $cleanKey }}" {{ if in $currentKey $k }}selected{{ end }}> | ||
| 33 | {{ $k }} | ||
| 34 | </option> | ||
| 35 | {{ end }} | ||
| 36 | </select> | ||
| 37 | </div> | ||
| 38 | </div> | ||
| 39 | |||
| 40 | </div> | ||
| 41 | |||
| 42 | {{ if .Param "showTags" }} | ||
| 43 | |||
| 44 | {{ $taxonomy := "tags" }} | ||
| 45 | {{ with .Param $taxonomy }} | ||
| 46 | |||
| 47 | <div class="single-tags"> | ||
| 48 | {{ range $index, $tag := . }} | ||
| 49 | {{ with $.Site.GetPage (printf "/%s/%s" $taxonomy $tag) -}} | ||
| 50 | <span> | ||
| 51 | <a href="{{ .Permalink }}">#{{ .LinkTitle }}</a> | ||
| 52 | </span> | ||
| 53 | {{ end }} | ||
| 54 | {{ end }} | ||
| 55 | </div> | ||
| 56 | |||
| 57 | {{ end }} | ||
| 58 | {{ end }} | ||
| 59 | |||
| 60 | {{/* Page content */}} | ||
| 61 | |||
| 62 | <div class="single-content"> | ||
| 63 | {{ .Content }} | ||
| 64 | </div> | ||
| 65 | |||
| 66 | {{/* Back to top */}} | ||
| 67 | <div class="back-to-top"> | ||
| 68 | <a href="#top"> | ||
| 69 | back to top | ||
| 70 | </a> | ||
| 71 | </div> | ||
| 72 | </div> | ||
| 73 | |||
| 74 | {{ end }} \ No newline at end of file | ||
