show one more news article

This commit is contained in:
Ben Harris 2018-12-15 00:52:09 -05:00
parent 3cd8b35e30
commit c510a56e71
Signed by untrusted user: ben
GPG Key ID: 4E0AF802FFF7960C
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ $parser = new Mni\FrontYAML\Parser();
<div class="col-md-7">
<h1>~news~</h1>
<?php
foreach (array_slice(array_reverse(glob("news/pages/*.md")), 0, 3) as $page):
foreach (array_slice(array_reverse(glob("news/pages/*.md")), 0, 4) as $page):
$parsed = $parser->parse(file_get_contents($page));
$yaml = $parsed->getYAML();
if (!$yaml["published"]) continue; ?>