Latest articles

{% $latestArticlesQuery = $db->query("select articles.id, articles.category_id, articles.slug as slug, articles.title as title, articles.excerpt as excerpt, articles.image as image, articles.created as created, authors.name as authorname, authors.linkedin as linkedin, authors.slug as authorslug, categories.name as category_name, categories.slug as category_slug from articles, authors, categories where articles.author_id = authors.id and articles.category_id = categories.id ORDER BY articles.created DESC limit 0,5"); while($latestArticle = $latestArticlesQuery -> fetchArray(SQLITE3_ASSOC)){ %}

{{ $latestArticle['title'] }}

{{ date("d F, Y", strtotime($latestArticle['created'])) }}
{% } %}