login/edit: admin links to doc/post user pages
[minimedit.git] / nieuws / feed / index.php
index 3bea1b728582a8c820f3bfb0319c2c52cb273b7a..66855b149e88e1c8dfaf130bae47eebcf2c3217b 100644 (file)
@@ -13,7 +13,6 @@ $siteref = (empty($_SERVER['HTTPS']) ? 'http' : 'https') . '://' . $_SERVER['HTT
        <link href="<?= $siteref . $_SERVER['REQUEST_URI'] ?>" rel="self" />
        <author><name>Lijtweg</name></author>
 <?php
-include 'nieuws.inc.php';
 $root = preg_replace('{/feed$}', '', $Page) . "/2???";
 $pages = array_reverse(glob("$root/*.html"));
 
@@ -31,9 +30,10 @@ foreach ($pages as $i => $page) {
                <title><?= $article->title ?></title>
                <published><?= $article->dateiso ?></published>
                <updated><?= $article->dateiso ?></updated>
-               <content type="html"><?= htmlspecialchars($article->body) ?>
-               </content>
 <?php
+       if ($article->teaser) {
+               printf("\t\t<summary>%s</summary>\n", htmlspecialchars($article->teaser));
+       }
        if ($article->thumb) {
                printf("\t\t".'<link rel="enclosure" type="%s" href="%s"%s />'."\n",
                        'image/jpeg',
@@ -42,6 +42,8 @@ foreach ($pages as $i => $page) {
                );
        }
 ?>
+               <content type="html"><?= htmlspecialchars($article->story) ?>
+               </content>
        </entry>
 <?php
 }