Commit 93fef96c authored by fanconic's avatar fanconic
Browse files

different render functions for future social media API implementation

parent 553d6e22
......@@ -7,7 +7,7 @@ const date = `${new Date().toISOString().split('.')[0]}Z`;
// Render the Hot Cards, with link and imageurl
const renderHotCards = (item, index) => {
const { title, href } = item;
const imageurl = item.img_infoscreen ? `${apiUrl}${item.img_infoscreen.file}` : '';
const imageurl = item.img_poster ? `${apiUrl}${item.img_poster.file}` : '';
if (index === 0) {
return m(
'div.hot-first-card',
......@@ -112,7 +112,7 @@ export default class Frontpage {
}
onbeforeupdate() {
this.events = events.getList().slice(4, 7);
this.events = events.getList().slice(0, 3);
}
view() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment