From 71d47ab80418236236b85f01844658fefc026a7c Mon Sep 17 00:00:00 2001
From: Janne Koschinski <janne@kuschku.de>
Date: Fri, 7 Dec 2018 16:43:19 +0100
Subject: [PATCH] Use .png suffix for image URLs

---
 templates/image_detail.html | 2 +-
 templates/image_list.html   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/image_detail.html b/templates/image_detail.html
index 261205b..7c125e0 100644
--- a/templates/image_detail.html
+++ b/templates/image_detail.html
@@ -8,7 +8,7 @@
         <h2 class="title">{{.Image.Title}}</h2>
     {{end}}
         <a class="image" href="/{{.Image.Id}}">
-            <img src="/{{.Image.Id}}">
+            <img src="/{{.Image.Id}}.png">
         </a>
     {{if .IsMine}}
         <p class="description fake-input" contenteditable="true" placeholder="Description"
diff --git a/templates/image_list.html b/templates/image_list.html
index 2df6ccf..4cc941a 100644
--- a/templates/image_list.html
+++ b/templates/image_list.html
@@ -4,7 +4,7 @@
 {{range .Images}}
     <a class="image" href="/i/{{.Id}}">
         <div class="image-container">
-            <img src="/{{.Id}}t">
+            <img src="/{{.Id}}t.png">
         </div>
         <div class="info">
             <p>{{.OriginalName}}</p>
-- 
GitLab