summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2017-05-13 21:14:56 +0200
committerJules Laplace <jules@okfoc.us>2017-05-13 21:14:56 +0200
commitc58266b2dabb3afdd6027c0335af2207b86a1c0f (patch)
tree6327e6c1a044f27bad455b23322db5820aa47dfb /templates
parentad42b93438225e3cd7518998bd7f067abf4cb756 (diff)
route hotlinking photo
Diffstat (limited to 'templates')
-rw-r--r--templates/photo.liquid15
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/photo.liquid b/templates/photo.liquid
new file mode 100644
index 0000000..de229fa
--- /dev/null
+++ b/templates/photo.liquid
@@ -0,0 +1,15 @@
+<!doctype html>
+<html>
+<head>
+<title>Hansel and Gretel - Armory on Park</title>
+</head>
+<body>
+
+</body>
+<script>
+var hash = document.location.pathname.replace('/photo/','').replace(/\/.*/,'')
+var img = new Image
+img.src = 'https://marsupial.s3.amazonaws.com/armory/mail/' + hash + '.jpg'
+document.body.appendChild(img)
+</script>
+</html>