FEAT: use absolute paths

This commit is contained in:
Mohamad Damaj 2023-06-23 11:20:58 +03:00
parent e7ba8985db
commit 405057cfaa

View file

@ -11,12 +11,12 @@
<meta content="#FD7717" data-react-helmet="true" name="theme-color" />
</head>
<body>
<?php include '/templates/header.php'?>
<?php include '/var/www/beta/templates/header.php'?>
<div class="circle"></div>
<p> NOTE: for people who want to use an RSS reader, here is the <a href='/site/blog/rss.xml'>rss.xml</a>
<p> NOTE: for people who want to use an RSS reader, here is the <a href='rss.xml'>rss.xml</a></p>
<?php
// Define the RSS feed URL
$feed = '/site/blog/rss.xml';
$feed = '/var/www/beta/site/blog/rss.xml';
// Parse the XML
$xml = simplexml_load_file($feed);
@ -46,6 +46,6 @@ foreach ($xml->channel->item as $item) {
echo '</div>';
}
?>
<?php include '/templates/footer.php'?>
<?php include '/var/www/beta/templates/footer.php'?>
</body>
</html>