aboutsummaryrefslogtreecommitdiffstats
path: root/generate.php
diff options
context:
space:
mode:
authorFran├žois Kooman <fkooman@tuxed.net>2017-04-23 17:51:07 +0200
committerFran├žois Kooman <fkooman@tuxed.net>2017-04-23 17:51:07 +0200
commit932a20acb74ab45d2fcc6adddda79d77e153b060 (patch)
tree40b1f9835e22e55873671780346c74733ded29a1 /generate.php
parentf71a9632d406ea4d182f83333b563d64c86364e5 (diff)
downloadwww.tuxed.net-932a20acb74ab45d2fcc6adddda79d77e153b060.zip
www.tuxed.net-932a20acb74ab45d2fcc6adddda79d77e153b060.tar.gz
www.tuxed.net-932a20acb74ab45d2fcc6adddda79d77e153b060.tar.xz
add Sarajevo post
Diffstat (limited to 'generate.php')
-rw-r--r--generate.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/generate.php b/generate.php
index 9a0eff3..e4a2ed8 100644
--- a/generate.php
+++ b/generate.php
@@ -55,7 +55,7 @@ foreach (glob(sprintf('%s/*.md', $pageDir)) as $pageFile) {
}
$line = fgets($f);
do {
- $xx = explode(':', $line);
+ $xx = explode(':', $line, 2);
$pageInfo[trim($xx[0])] = trim($xx[1]);
$line = fgets($f);
} while (0 !== strpos($line, '---'));
@@ -90,7 +90,7 @@ foreach (glob(sprintf('%s/*.md', $postDir)) as $postFile) {
}
$line = fgets($f);
do {
- $xx = explode(':', $line);
+ $xx = explode(':', $line, 2);
$postInfo[trim($xx[0])] = trim($xx[1]);
$line = fgets($f);
} while (0 !== strpos($line, '---'));