summaryrefslogtreecommitdiffstats
path: root/templates/file.md
diff options
context:
space:
mode:
Diffstat (limited to 'templates/file.md')
-rw-r--r--templates/file.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/file.md b/templates/file.md
new file mode 100644
index 0000000..12a5a81
--- /dev/null
+++ b/templates/file.md
@@ -0,0 +1,13 @@
+{% include '_head.md' %}
+
+{% if type == 'text' %}
+```{{ file_extension }}
+{{ content }}
+```
+{% elif type == 'image' %}
+![](data:image/png;base64,{{ content }})
+{% elif type == 'empty' %}
+File is empty.
+{% else %}
+Can't display binary file.
+{% endif %}