A shortcode for Hugo static site generator to include audio hosted on a Funkwhale instance
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

15 lines
585 B

{{ if .IsNamedParams -}}
<div{{ with .Get "class" }} class="{{ . }}"{{ end }}>
<iframe
width="100%" {{ with .Get "height" }} height="{{ . }}"{{ else }}height="138"{{ end }} style="border: none; overflow: hidden;"
src="https://{{ .Get "host" }}/front/embed.html?&amp;type={{ with .Get "type" }}{{ . }}{{ else }}track{{ end }}&amp;id={{ .Get "id" }}">
</iframe>
</div>
{{- else -}}
<div>
<iframe
width="100%" height="138" style="border: none; overflow: hidden;"
src="https://{{ .Get 0 }}/front/embed.html?&amp;type=track&amp;id={{ .Get 1 }}">
</iframe>
</div>
{{- end }}