From b74745f55636877c4c999730d632fe9896f7d37f Mon Sep 17 00:00:00 2001 From: Jacob Karlsson Date: Sat, 7 Jul 2018 13:04:43 +0200 Subject: [PATCH] Clean code --- render.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/render.js b/render.js index 0af4c2f..d6790f8 100644 --- a/render.js +++ b/render.js @@ -533,13 +533,12 @@ function render(opts, id, c) { } function renderGathering(opts, id, c) { - const desc = h('div') - desc.innerHTML = marked(c.about.description, opts.marked) - const image = h('p', h('img', { src: opts.img_base + c.about.image })) - const attending = h('h3.attending', c.numberAttending + ' attending') const title = h('h2', c.about.title) const time = h('h3', new Date(c.about.startDateTime.epoch).toUTCString()) - console.log('c', c) + const image = h('p', h('img', { src: opts.img_base + c.about.image })) + const attending = h('h3.attending', c.numberAttending + ' attending') + const desc = h('div') + desc.innerHTML = marked(c.about.description, opts.marked) return h('section', [title, time,