update links and .htaccess for SSL
[dylansserver.git] / view / rss.php
index 2f55ca3..a2ac042 100644 (file)
@@ -1,9 +1,18 @@
 <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
   <channel>
     <title>dylansserver.com/notes/rss</title>
-    <link>http://dylansserver.com/notes</link>
+    <link>https://dylansserver.com/notes</link>
     <description>dylansserver.com/notes/rss</description>
-    <atom:link href="http://dylansserver.com/notes/rss" rel="self" type="application/rss+xml" />
-    <?php $this->display_items() ?>
+    <atom:link href="https://dylansserver.com/notes/rss" rel="self" type="application/rss+xml" />
+    <?php
+      foreach ($this->items as $item) {
+        echo "<item>";
+        echo "  <title>" . $item['title'] . "</title>";
+        echo "  <link>" . $item['url'] . "</link>";
+        echo "  <guid>" . $item['url'] . "</guid>";
+        echo "  <description>" . $item['description'] . "</description>";
+        echo "</item>";
+      }
+    ?>
   </channel>
 </rss>