diff options
author | François Kooman <fkooman@tuxed.net> | 2016-06-13 11:59:42 +0200 |
---|---|---|
committer | François Kooman <fkooman@tuxed.net> | 2016-06-13 11:59:42 +0200 |
commit | aebb5ca6151ec45ca0dc516bf292d46a019bfb97 (patch) | |
tree | 0000526aab2d5e8ac49bb9955073cfab9196db12 /generate.php | |
parent | fe886fbdffd77d3c6e7e8034b1693f91f20f6dec (diff) | |
download | www.tuxed.net-aebb5ca6151ec45ca0dc516bf292d46a019bfb97.zip www.tuxed.net-aebb5ca6151ec45ca0dc516bf292d46a019bfb97.tar.gz www.tuxed.net-aebb5ca6151ec45ca0dc516bf292d46a019bfb97.tar.xz |
update css, allow for writing unpublished posts
Diffstat (limited to 'generate.php')
-rw-r--r-- | generate.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/generate.php b/generate.php index f01b9cb..a787eb6 100644 --- a/generate.php +++ b/generate.php @@ -53,6 +53,7 @@ foreach (glob(sprintf('%s/*.md', $postDir)) as $postFile) { 'htmlContent' => $parser->transform($buffer), 'description' => isset($postInfo['description']) ? $postInfo['description'] : $postInfo['title'], 'published' => $postInfo['published'], + 'publish' => isset($postInfo['publish']) ? 'no' !== $postInfo['publish'] : true, 'title' => $postInfo['title'], 'modified' => isset($postInfo['modified']) ? $postInfo['modified'] : null, 'fileName' => $postOutputFile, |