-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmp.index.html
169 lines (155 loc) · 5.17 KB
/
tmp.index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
{{ define "head" }}
<title>{{ .Params.title }}</title>
{{ $s := slice (dict "null" "null") }}
{{/* {{ $sections := (slice
(dict "name" "about" "title" .Params.about.title)
(dict "name" "media" "title" .Params.media.title)
(dict "name" "streaming" "title" .Params.streaming.title)
(dict "name" "contact" "title" .Params.contact.title)
)
}} */}}
{{ range $.Site.Home.AllTranslations }}
{{ $s = $s |
append (dict "name" .Language.LanguageName "link" .RelPermalink)
}}
{{ end }}
{{ $t
:= last (sub (len $s) 1) $s
}}
{{ $js := resources.Get "js/index.ts" | js.Build
(dict "params" (dict "langs" $t))
}}
<script type="text/javascript">
window.sections = JSON.parse({{ .Params.sections | jsonify }})
</script>
<script src="{{ $js.RelPermalink }}"></script>
{{ end }}
{{ define "about" }}<h1>about </h1>{{ end }}
{{ define "partials/about.html" }}
<div class={{.name}} id={{.name}}>
<h1 class="section-header">{{ .title }}</h1>
<div>{{ .one }}</div>
<div>{{ .two }}</div>
</div>
{{ end }}
{{ define "partials/media.html" }}
<div class={{.name}} id={{.name}}>
<h1 class="section-header">{{ .title }}</h1>
<lk-ticket mode="video" coming-soon>
<video src={{.video}} controls="true"></video>
</lk-ticket>
<lk-ticket mode="audio">
<lk-player></lk-player>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', () => {
const p = document.querySelector('lk-player');
console.log('p?', p);
p.songs = JSON.parse({{ jsonify .songs }} )
p.requestUpdate()
})
</script>
{{/* {{ $lastSong := index .songs (sub (len .songs) 1 )}}
{{ range $m := .songs }}
{{$isLast := eq $lastSong.title .title }}
<lk-track title={{.title}} url={{.url}} is-last={{$isLast}}></lk-track>
{{ end }}
</lk-player> */}}
</lk-ticket>
<lk-ticket mode="photos" coming-soon>
<div class="gallery pswp-gallery--single-column" id="gallery--getting-started">
{{ range $p := .photos }}
<a href={{.url}}
data-pswp-width={{.w}}
data-pswp-height={{.h}}
data-cropped="true"
target="_blank">
{{ with $p.thumb }}
<img class="thumb" src={{.}} />
{{end}}
</a>
{{end }}
</div>
</lk-ticket>
</div>
{{ end }}
{{ define "partials/streaming.html"}}
<div class={{.name}} id={{.name}}>
<h1 class="section-header">{{ .title }}</h1>
<p>{{ .text | safeHTML }}</p>
{{ range $l := .links }}
<a
class="stream-link"
href="{{ $l.url }}"
target="_blank"
rel="noopener"
>{{ $l.title }}</a
>
{{ end }}
</div>
{{end}}
{{ define "partials/press-kit.html" }}
<div class={{.name}} id={{.name}}>
<h1 class="section-header">{{ .title }}</h1>
<a download="{{.filename}}" href="{{.url}}">{{.text}}</a>
</div>
{{end}}
{{ define "partials/mailing-list.html" }}
<div class={{.name}} id={{.name}}>
<h1 class="section-header">{{ .title }}</h1>
<p>{{.text}} </p>
<form action="https://thelipstickkillers.us17.list-manage.com/subscribe/post?u=81cfb22b4ca5a3a253c827ffd&id=6d5ffc9c24" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<mwc-textfield outlined required name="EMAIL" id="mce-EMAIL"></mwc-textfield>
<div hidden="true"><input type="hidden" name="tags" value="6343168"></div>
<br/>
<br/>
<mwc-button outlined label="Join"></mwc-button>
</form>
</div>
{{end}}
{{ define "partials/contact.html"}}
<div class={{.name}} id={{.name}}>
<h1 class="section-header">{{ .title }}</h1>
<p>{{ .text }}</p>
<p>
{{ .number }}
<br />
<a href="mailto:{{ .email }}"
>{{ .email }}</a
>
</p>
</div>
{{end}}
{{ define "main" }}
{{range $v := .Params.sections }}
{{$path := $v.name | printf "%s.html"}}
<div class="section">
{{ partial $path .}}
</div>
{{ end }}
<div class="centered">
{{/* <main-menu links="about,media,streaming,contact"> </main-menu> */}}
<div class="content">
<div class="v-l">
{{/* <img class="vignette" src="/img/vignette-0.jpg"> */}}
{{/* <img
class="logo-img"
src="/img/logo.png"
title="LOGO + DROPSHADOW"
alt="LOGO + DROPSHADOW"
/> */}}
</div>
<div class="inner-content">
{{/* <img class="vignette-bottom" src="/img/vignette-1.jpg"> */}}
<div class="section-holder">
{{/* {{range $v := .Params.sections }}
{{$path := $v.name | printf "%s.html"}}
<div class="section">
{{ partial $path .}}
</div>
{{ end }} */}}
</div>
</div>
</div>
</div>
</div>
{{ end }}