X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/72fc7bdc6b1dfd858c108c578c8d73a5ad40cbcd..fbeede6b78751daa3758b33181cd0e3c070713d1:/widget/sitemap.php diff --git a/widget/sitemap.php b/widget/sitemap.php index 9b03e2f..8d7ba76 100644 --- a/widget/sitemap.php +++ b/widget/sitemap.php @@ -1,32 +1,11 @@ getFilename()[0] === '.') { - # skip hidden files and directories - return FALSE; - } - if ($current->isLink()) { - # ignore symlinks, original contents only - return FALSE; - } - return $current->isDir() - || preg_match('/\.html$/', $current->getFilename()); - } -); - +# list article details +$search = new PageSearch(ltrim($Page->path, '/') ?: '.'); print '
%s", - preg_replace('/\n(.*)/s', ' \1', $article->teaser) - ); - } +foreach ($search->files() as $ref => $sorted) { + $Page->path = $ref; + print '