move assets
This commit is contained in:
17
_embed/templates/single.tmpl
Normal file
17
_embed/templates/single.tmpl
Normal file
@@ -0,0 +1,17 @@
|
||||
{{ define "content" }}
|
||||
{{ with .Data}}
|
||||
<main class="container">
|
||||
{{ if eq .Type "image" }}
|
||||
<img src="{{ .URL }}?raw=true">
|
||||
{{ else if eq .Type "audio" }}
|
||||
<audio src="{{ .URL }}?raw=true"></audio>
|
||||
{{ else if eq .Type "video" }}
|
||||
<!-- TODO: SHOW VIDEO ? -->
|
||||
{{ else if eq .Type "blob" }}
|
||||
<a href="?download=true">Download</a>
|
||||
{{ else}}
|
||||
<pre>{{ .StringifyContent }}</pre>
|
||||
{{ end }}
|
||||
</main>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user