From 11766a4bc5940b40c904f43676cc5d33583eb66e Mon Sep 17 00:00:00 2001
From: Benjamin Kiessling <mittagessen@l.unchti.me>
Date: Fri, 27 Jan 2012 03:28:00 +0100
Subject: Fix path generation

---
 frontend.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/frontend.js b/frontend.js
index ee811cd..718d510 100644
--- a/frontend.js
+++ b/frontend.js
@@ -23,8 +23,9 @@ exports.start = function(config) {
 			for(var slide in slides['slides']) {
 				if(!slides['slides'].hasOwnProperty(slide)) { continue; }
 				if(slides['slides'][slide]['type'] === 'image') {
+					console.log(slides['slides'][slide]['file']);
 					slidesAr.push({
-						image: slides['slides'][slide]['file']
+						image: '/' + slides['slides'][slide]['file']
 					});
 				}
 				if(slides['slides'][slide]['head'].length > 0) {
@@ -50,7 +51,6 @@ exports.start = function(config) {
 							eventObj[evF] = slides['events'][date][ev][evF];
 						}
 					}
-					console.log(eventObj);
 					eventAr[eventAr.length - 1]['events'].push(eventObj);
 				}
 			}
-- 
cgit v1.2.1