diff --git a/photos.njk b/photos.njk
index fd64ba2..205d839 100644
--- a/photos.njk
+++ b/photos.njk
@@ -21,7 +21,10 @@ permalink: /photos/
{% if post.data.photo %}
{% for img in post.data.photo %}
- {% set photoUrl = img.url if img.url.startsWith('/') or img.url.startsWith('http') else '/' + img.url %}
+ {% set photoUrl = img.url %}
+ {% if photoUrl and photoUrl[0] != '/' and 'http' not in photoUrl %}
+ {% set photoUrl = '/' + photoUrl %}
+ {% endif %}