{%
$popularArticlesQuery = $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.views DESC limit 0,4");
while($popularArticle = $popularArticlesQuery -> fetchArray(SQLITE3_ASSOC)){
%}
{{ date("d F, Y", strtotime($popularArticle['created'])) }}
{%
}
%}