RSS feed added to the Index

This commit is contained in:
Lucas 2021-04-10 22:17:00 +00:00
parent 3455b93b6f
commit 6381967f93
1 changed files with 2 additions and 2 deletions

View File

@ -32,9 +32,9 @@ while($ao < count($posts)){
</rss>
<?php }else{
header("Content-type: text/html");
if($website!=False){$website="<a href='$website'>Website</a><br>";}else{$website="";}
if($website!=False){$website="<a href='$website'>Website</a> - ";}else{$website="";}
if($description!=False){$description="<p>$description</p>";}
echo "<!DOCTYPE html><html><head><title>$title</title><style>$style</style>$custom_css</head><body><a id='logo' href='?'><h1>$title</h1></a>$description$website<div class='notlogo'>";
echo "<!DOCTYPE html><html><head><title>$title</title><style>$style</style>$custom_css</head><body><a id='logo' href='?'><h1>$title</h1></a>$description$website<a href='?rss'>RSS Feed</a><br><div class='notlogo'>";
$a=count($posts)-1;$ao=0;$next=$a+1;
while($ao < count($posts)){
echo "<p><b><a href='?p=$next'>".$posts[$a][1]."</a></b> ".$posts[$a][0]."</p>";