2016-06-11 13:32:50 +00:00
|
|
|
{{ define "content" }}
|
2016-08-21 19:10:12 +00:00
|
|
|
{{ with .Data}}
|
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}}
|
2016-10-18 20:06:31 +00:00
|
|
|
<pre>{{ .StringifyContent }}</pre>
|
2016-06-11 13:32:50 +00:00
|
|
|
{{ end }}
|
2016-06-22 21:18:21 +00:00
|
|
|
</main>
|
2016-08-21 19:10:12 +00:00
|
|
|
{{ end }}
|
2016-06-11 13:32:50 +00:00
|
|
|
{{ end }}
|