add article display
This commit is contained in:
parent
78cb14bbd2
commit
169a8a2405
|
@ -9,12 +9,17 @@ async function handler(req, res) {
|
||||||
where: { hidden: false }
|
where: { hidden: false }
|
||||||
});
|
});
|
||||||
|
|
||||||
|
let articles = await Sequelize.Article.findAll({
|
||||||
|
limit: 5
|
||||||
|
});
|
||||||
|
|
||||||
res.send(
|
res.send(
|
||||||
await Helpers.ViewLoader.load(
|
await Helpers.ViewLoader.load(
|
||||||
'main.pug',
|
'main.pug',
|
||||||
{
|
{
|
||||||
current_route: '/',
|
current_route: '/',
|
||||||
gb_entries
|
gb_entries,
|
||||||
|
articles
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -35,11 +35,11 @@ block content
|
||||||
td(width='50%' style='border-left:1px solid #c2c4c2;border-right:1px solid #c2c4c2;padding:0 1%')
|
td(width='50%' style='border-left:1px solid #c2c4c2;border-right:1px solid #c2c4c2;padding:0 1%')
|
||||||
h3 Blog
|
h3 Blog
|
||||||
ul
|
ul
|
||||||
each i in [0,0,0,0,0]
|
each article in articles
|
||||||
li(style='font-size:16pt')
|
li(style='font-size:16pt')
|
||||||
| entry
|
h5= article.title
|
||||||
ul
|
ul
|
||||||
li data
|
li= article.shortText
|
||||||
|
|
||||||
td(width='20%')
|
td(width='20%')
|
||||||
h4 Links
|
h4 Links
|
||||||
|
|
Loading…
Reference in New Issue