summaryrefslogblamecommitdiff
path: root/feed.php
blob: c8f51ef35f4232f38e8fb6308b6ee6b8a016dee7 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                     
 






                                                                                                        
                                                                     


                                                          


                                                     
 










                                                                                                                                                
<?php header('content-type: application/rss+xml'); ?>

<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>53hornet's Feed</title>
		<link>https://www.53hor.net</link>
		<atom:link href="https://www.53hor.net/rss.xml" rel="self" type="application/rss+xml" />
		<description>The World Wide Web pages of Adam Carpenter</description>
		<image>
			<url>https://www.53hor.net/53hornet.svg</url>
			<title>53hornet's Feed</title>
			<link>https://www.53hor.net</link>
		</image>
		<?php
		if ($posts = glob('./posts/*.php')) {
			$early = true;

			foreach (array_reverse($posts) as $post) {
				if (!empty($post) && $post != '.' && $post != '..') {
					$post_name = explode('/', $post)[2];
					include($post);
					printf('<item><link>https://www.53hor.net/posts/%s</link><title>%s</title></item>', $post_name, $title);
				}
			}
		}
		?>
	</channel>
</rss>