1
0
Fork 0
isopod.cool/nav.php
will 65a3e92d28 - Restructured blog
- Most blog posts are now written and stored as markdown
 - Markdown parsing and dynamic rendering for blog posts has been moved to a single file
 - Title for blog posts is now pulled from atom feed, just like dates
 - Changed code block styling and slightly altered content of some posts for compatibility with markdown parsing
 - Removed some old blog posts I'm no longer proud of
- Added link to deeptwisty.com to navbar on /
2024-09-10 04:42:07 -06:00

30 lines
No EOL
1 KiB
PHP

<?php
$host = $_SERVER['HTTP_HOST'];
function echolink($url, $name) {
global $host;
if("/$url/" != $_SERVER['REQUEST_URI']) {
echo "<a href='https://$host/$url/'>$name</a> ";
} else {
echo "<span>$name</span> ";
}
}
echo "<nav id='main-nav'>";
if($_SERVER["DOCUMENT_ROOT"] !== getcwd()) {
echo "<a href='https://$host/'>home</a> ";
} else {
echo("<a href='https://deeptwisty.com' style='text-decoration: none;' title='the website where i post my various art. i like to compartmentalize'><span style=' margin: 0; padding: 0; font-style: italic; background: linear-gradient(135deg, #2e1ae0 0%, #2e1ae0 35%, #00ff00 65%, #ffff00 90%); background-clip: text; -webkit-text-fill-color: transparent;'>deep twisty</span></a>");
}
echolink("about", "about");
echolink("uses", "uses");
echolink("music", "music");
echolink("blog", "blog");
echolink("links", "links");
echolink("stuff", "stuff");
echolink("guestbook", "guestbook");
echolink("stats", "stats");
echolink("greenhouse", "greenhouse");
echolink("etc", "etc");
echo("</nav>")
?>