Initial site version
This commit is contained in:
parent
faccc96951
commit
71b28ac30a
105 changed files with 106592 additions and 2 deletions
3
layouts/partials/footers/submissions.html
Normal file
3
layouts/partials/footers/submissions.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<img src="https://mirrors.creativecommons.org/presskit/buttons/88x31/svg/by-sa.svg">
|
||||
<br>
|
||||
Submissions are copyright © {{ dateFormat "2006" now }} their respective submitters, and are licensed under the <a href="https://creativecommons.org/licenses/by-sa/4.0/">Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)</a> license.
|
23
layouts/shortcodes/spotify.html
Normal file
23
layouts/shortcodes/spotify.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
<!--
|
||||
Parameters:
|
||||
type - (Required) album / track / playlist / artist
|
||||
id - (Required) Target ID
|
||||
width - (Optional) width
|
||||
height - (Optional) height
|
||||
-->
|
||||
|
||||
{{ if .IsNamedParams }}
|
||||
<iframe src="https://open.spotify.com/embed/{{ .Get "type" }}/{{ .Get "id" }}"
|
||||
width="{{ default "100%" (.Get "width") }}"
|
||||
height="{{ default "380" (.Get "height") }}"
|
||||
frameborder="0"
|
||||
allowtransparency="true"
|
||||
allow="encrypted-media"></iframe>
|
||||
{{ else }}
|
||||
<iframe src="https://open.spotify.com/embed/{{ .Get 0 }}/{{ .Get 1 }}"
|
||||
width="{{ default "100%" (.Get 2) }}"
|
||||
height="{{ default "380" (.Get 3) }}"
|
||||
frameborder="0"
|
||||
allowtransparency="true"
|
||||
allow="encrypted-media"></iframe>
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue