diff --git a/site/blog/index.php b/site/blog/index.php index b549f00..f170c0a 100644 --- a/site/blog/index.php +++ b/site/blog/index.php @@ -14,27 +14,20 @@
NOTE: for people who want to use an RSS reader, here is the rss.xml
-channel->item); - -// Reverse the order of the items so that the latest post is displayed first -$items = array_reverse($items); - // Loop through the items and display them -foreach ($items as $item) { +foreach ($xml->channel->item as $item) { // Add a box around the article echo '' . date('F j, Y', strtotime($item->pubDate)) . '
'; // Split the content into sentences $sentences = preg_split('/(?<=[.?!])\s+(?=[a-z])/i', $item->description);