2016-06-11 13:32:50 +00:00
|
|
|
{{ define "content" }}
|
|
|
|
|
2016-06-22 21:18:21 +00:00
|
|
|
<main class="container">
|
2016-06-11 13:32:50 +00:00
|
|
|
{{ if eq .Type "image" }}
|
2016-06-22 21:18:21 +00:00
|
|
|
<img src="{{ .URL }}?raw=true">
|
|
|
|
{{ else if eq .Type "audio" }}
|
|
|
|
<audio src="{{ .URL }}?raw=true"></audio>
|
|
|
|
{{ else if eq .Type "video" }}
|
2016-06-11 13:32:50 +00:00
|
|
|
|
2016-06-22 21:18:21 +00:00
|
|
|
{{ else}}
|
|
|
|
<pre>{{ .Content }}</pre>
|
2016-06-11 13:32:50 +00:00
|
|
|
{{ end }}
|
2016-06-22 21:18:21 +00:00
|
|
|
</main>
|
2016-06-11 13:32:50 +00:00
|
|
|
|
|
|
|
{{ end }}
|